本文整理了Java中java.time.LocalTime.hashCode()
方法的一些代码示例,展示了LocalTime.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalTime.hashCode()
方法的具体详情如下:
包路径:java.time.LocalTime
类名称:LocalTime
方法名:hashCode
[英]A hash code for this time.
[中]这次的哈希代码。
代码示例来源:origin: neo4j/neo4j
@Override
protected int computeHash()
{
return value.hashCode();
}
代码示例来源:origin: MorphiaOrg/morphia
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (instant != null ? instant.hashCode() : 0);
result = 31 * result + (localDate != null ? localDate.hashCode() : 0);
result = 31 * result + (localDateTime != null ? localDateTime.hashCode() : 0);
result = 31 * result + (localTime != null ? localTime.hashCode() : 0);
return result;
}
代码示例来源:origin: org.neo4j/neo4j-values
@Override
protected int computeHash()
{
return value.hashCode();
}
代码示例来源:origin: com.github.almex/raildelays-api
@Override
public int hashCode() {
int hash = 1;
hash = hash * 7 + delay.hashCode();
hash = hash * 3 + expectedTime.hashCode();
return hash;
}
代码示例来源: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.wslotkin/itinerator-generator
/**
* Computes a hash code from attributes: {@code dayOfWeek}, {@code timeOfDay}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 31;
h = h * 17 + dayOfWeek.hashCode();
h = h * 17 + timeOfDay.hashCode();
return h;
}
代码示例来源:origin: com.github.seratch/java-time-backport
/**
* A hash code for this date-time.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return date.hashCode() ^ time.hashCode();
}
代码示例来源:origin: com.torodb.engine.kvdocument/kvdocument-core
@Override
public int hashCode() {
return getValue().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 toLocalDate().hashCode() ^ toLocalTime().hashCode();
}
代码示例来源:origin: org.tiogasolutions.dev/tioga-dev-testing
@Override
public int hashCode() {
int result = injected != null ? injected.hashCode() : 0;
result = 31 * result + (missing != null ? missing.hashCode() : 0);
result = 31 * result + (stringValue != null ? stringValue.hashCode() : 0);
result = 31 * result + (int) (longValue ^ (longValue >>> 32));
result = 31 * result + intValue;
result = 31 * result + (latLng != null ? latLng.hashCode() : 0);
result = 31 * result + (tiogaMoney != null ? tiogaMoney.hashCode() : 0);
result = 31 * result + (javaLocalTime != null ? javaLocalTime.hashCode() : 0);
result = 31 * result + (javaLocalDate != null ? javaLocalDate.hashCode() : 0);
result = 31 * result + (javaLocalDateTime != null ? javaLocalDateTime.hashCode() : 0);
result = 31 * result + (javaZonedDateTime != null ? javaZonedDateTime.hashCode() : 0);
result = 31 * result + (traitMap != null ? traitMap.hashCode() : 0);
result = 31 * result + (fineMessage != null ? fineMessage.hashCode() : 0);
result = 31 * result + (messageSet != null ? messageSet.hashCode() : 0);
return result;
}
}
内容来源于网络,如有侵权,请联系作者删除!