本文整理了Java中java.time.ZoneOffset.hashCode()
方法的一些代码示例,展示了ZoneOffset.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneOffset.hashCode()
方法的具体详情如下:
包路径:java.time.ZoneOffset
类名称:ZoneOffset
方法名:hashCode
[英]A hash code for this offset.
[中]此偏移量的哈希代码。
代码示例来源:origin: ical4j/ical4j
@Override
public int hashCode() {
int result = 31;
result = result * (this.offsetBefore == null ? 1 : this.offsetBefore.hashCode());
result = result * (this.offsetAfter == null ? 1 : this.offsetAfter.hashCode());
return result;
}
代码示例来源:origin: com.github.seratch/java-time-backport
@Override
public int hashCode() {
return 1 ^
(31 + offset.hashCode()) ^
1 ^
(31 + offset.hashCode()) ^
1;
}
代码示例来源:origin: org.mnode.ical4j/ical4j
@Override
public int hashCode() {
int result = 31;
result = result * (this.offsetBefore == null ? 1 : this.offsetBefore.hashCode());
result = result * (this.offsetAfter == null ? 1 : this.offsetAfter.hashCode());
return result;
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* Returns a suitable hash code.
*
* @return the hash code
*/
@Override
public int hashCode() {
return transition.hashCode() ^ offsetBefore.hashCode() ^ Integer.rotateLeft(offsetAfter.hashCode(), 16);
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* A hash code for this time.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return time.hashCode() ^ offset.hashCode();
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* A hash code for this date-time.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return dateTime.hashCode() ^ offset.hashCode();
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* Returns a suitable hash code.
*
* @return the hash code
*/
@Override
public int hashCode() {
int hash = ((time.toSecondOfDay() + (timeEndOfDay ? 1 : 0)) << 15) +
(month.ordinal() << 11) + ((dom + 32) << 5) +
((dow == null ? 7 : dow.ordinal()) << 2) + (timeDefinition.ordinal());
return hash ^ standardOffset.hashCode() ^
offsetBefore.hashCode() ^ offsetAfter.hashCode();
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* A hash code for this date-time.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return dateTime.hashCode() ^ offset.hashCode() ^ Integer.rotateLeft(zone.hashCode(), 3);
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* A hash code for this date-time.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return toLocalDateTime().hashCode() ^ getOffset().hashCode() ^ Integer.rotateLeft(getZone().hashCode(), 3);
}
代码示例来源:origin: com.github.seratch/java-time-backport
@Override
public int hashCode() {
return toLocalDateTime().hashCode() ^ getOffset().hashCode() ^ Integer.rotateLeft(getZone().hashCode(), 3);
}
内容来源于网络,如有侵权,请联系作者删除!