本文整理了Java中java.time.ZoneId.hashCode()
方法的一些代码示例,展示了ZoneId.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneId.hashCode()
方法的具体详情如下:
包路径:java.time.ZoneId
类名称:ZoneId
方法名:hashCode
[英]A hash code for this time-zone ID.
[中]此时区ID的哈希代码。
代码示例来源:origin: blynkkk/blynk-server
@Override
public int hashCode() {
int result = id;
result = 31 * result + (days != null ? Arrays.hashCode(days) : 0);
result = 31 * result + time;
result = 31 * result + (tzName != null ? tzName.hashCode() : 0);
return result;
}
}
代码示例来源:origin: EvoSuite/evosuite
@Override
public int hashCode() {
return zone.hashCode() + 1;
}
@Override
代码示例来源:origin: jenetics/jenetics
@Override
public int hashCode() {
return _zone.hashCode() + 11;
}
代码示例来源:origin: com.github.seratch/java-time-backport
@Override
public int hashCode() {
return zone.hashCode() + 1;
}
@Override
代码示例来源:origin: org.threeten/threeten-extra
/**
* A hash code for this clock, which is constant for this instance.
*
* @return a constant hash code for this instance
*/
@Override
public int hashCode() {
return System.identityHashCode(instantHolder) ^ zone.hashCode();
}
代码示例来源:origin: com.github.seratch/java-time-backport
@Override
public int hashCode() {
return instant.hashCode() ^ zone.hashCode();
}
@Override
代码示例来源:origin: io.projectreactor.addons/reactor-extra
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + scheduler.hashCode();
result = 31 * result + zone.hashCode();
return result;
}
代码示例来源:origin: com.twosigma.webtau/webtau-core
@Override
public int hashCode() {
int result = year != null ? year.hashCode() : 0;
result = 31 * result + (month != null ? month.hashCode() : 0);
result = 31 * result + (day != null ? day.hashCode() : 0);
result = 31 * result + (hours != null ? hours.hashCode() : 0);
result = 31 * result + (minutes != null ? minutes.hashCode() : 0);
result = 31 * result + (seconds != null ? seconds.hashCode() : 0);
result = 31 * result + (nanoOfSecond != null ? nanoOfSecond.hashCode() : 0);
result = 31 * result + (timeZone != null ? timeZone.hashCode() : 0);
return result;
}
}
代码示例来源:origin: org.xbib/time
@Override
public int hashCode() {
return super.hashCode() ^ zoneId.hashCode();
}
代码示例来源:origin: twosigma/webtau
@Override
public int hashCode() {
int result = year != null ? year.hashCode() : 0;
result = 31 * result + (month != null ? month.hashCode() : 0);
result = 31 * result + (day != null ? day.hashCode() : 0);
result = 31 * result + (hours != null ? hours.hashCode() : 0);
result = 31 * result + (minutes != null ? minutes.hashCode() : 0);
result = 31 * result + (seconds != null ? seconds.hashCode() : 0);
result = 31 * result + (nanoOfSecond != null ? nanoOfSecond.hashCode() : 0);
result = 31 * result + (timeZone != null ? timeZone.hashCode() : 0);
return result;
}
}
代码示例来源: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.guestful.module/guestful.module.jsr310-extensions
@Override
public int hashCode() {
int result = start.hashCode();
result = 31 * result + end.hashCode();
result = 31 * result + zoneId.hashCode();
return result;
}
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!