本文整理了Java中java.time.Instant.hashCode()
方法的一些代码示例,展示了Instant.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instant.hashCode()
方法的具体详情如下:
包路径:java.time.Instant
类名称:Instant
方法名:hashCode
[英]Returns a hash code for this instant.
[中]返回此瞬间的哈希代码。
代码示例来源:origin: thinkaurelius/titan
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (checked ? 1231 : 1237);
result = prime * result + ((expire == null) ? 0 : expire.hashCode());
return result;
}
代码示例来源:origin: JanusGraph/janusgraph
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (checked ? 1231 : 1237);
result = prime * result + ((expire == null) ? 0 : expire.hashCode());
return result;
}
代码示例来源:origin: neo4j/neo4j
@Override
protected int computeHash()
{
return value.toInstant().hashCode();
}
代码示例来源:origin: embulk/embulk
@Override
public int hashCode() {
return this.instant.hashCode() ^ 0x55555555;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
return zonedDateTime.toInstant().hashCode();
}
代码示例来源:origin: neo4j/neo4j
@Override
protected int computeHash()
{
return value.toInstant( UTC ).hashCode();
}
代码示例来源:origin: thinkaurelius/titan
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((cutoff == null) ? 0 : cutoff.hashCode());
result = prime * result + ((serializer == null) ? 0 : serializer.hashCode());
result = prime * result + ((store == null) ? 0 : store.hashCode());
result = prime * result + ((target == null) ? 0 : target.hashCode());
result = prime * result + ((tx == null) ? 0 : tx.hashCode());
return result;
}
代码示例来源:origin: JanusGraph/janusgraph
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((cutoff == null) ? 0 : cutoff.hashCode());
result = prime * result + ((serializer == null) ? 0 : serializer.hashCode());
result = prime * result + ((store == null) ? 0 : store.hashCode());
result = prime * result + ((target == null) ? 0 : target.hashCode());
result = prime * result + ((tx == null) ? 0 : tx.hashCode());
return result;
}
代码示例来源:origin: spring-projects/spring-security
@Override
public int hashCode() {
int result = this.getTokenValue().hashCode();
result = 31 * result + (this.getIssuedAt() != null ? this.getIssuedAt().hashCode() : 0);
result = 31 * result + (this.getExpiresAt() != null ? this.getExpiresAt().hashCode() : 0);
return result;
}
}
代码示例来源: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: rakam-io/rakam
@Override
public int hashCode() {
return instant().hashCode();
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
@Override
public int hashCode() {
int result = 17;
if (created != null) {
result = 31 * result + created.hashCode();
}
if (expires != null) {
result = 31 * result + expires.hashCode();
}
return result;
}
代码示例来源:origin: org.threeten/threeten-extra
/**
* A hash code for this interval.
*
* @return a suitable hash code
*/
@Override
public int hashCode() {
return start.hashCode() ^ end.hashCode();
}
代码示例来源:origin: com.blossom-project/blossom-core-common
@Override
public int hashCode() {
int result = name != null ? name.hashCode() : 0;
result = 31 * result + (from != null ? from.hashCode() : 0);
result = 31 * result + (to != null ? to.hashCode() : 0);
return result;
}
}
代码示例来源:origin: igniterealtime/Spark
@Override
public int hashCode()
{
return timestamp.toInstant().hashCode();
}
代码示例来源:origin: tec.units/indriya
@Override
public int hashCode() {
int result = quantity.hashCode();
result = 31 * result + instant.hashCode();
return result;
}
代码示例来源:origin: com.enonic.xp/core-api
@Override
public int hashCode()
{
int result = modifier != null ? modifier.hashCode() : 0;
result = 31 * result + ( displayName != null ? displayName.hashCode() : 0 );
result = 31 * result + ( modified != null ? modified.hashCode() : 0 );
result = 31 * result + ( comment != null ? comment.hashCode() : 0 );
return result;
}
代码示例来源:origin: com.enonic.xp/core-api
@Override
public int hashCode()
{
int result = nodeVersionId != null ? nodeVersionId.hashCode() : 0;
result = 31 * result + ( nodeId != null ? nodeId.hashCode() : 0 );
result = 31 * result + ( nodePath != null ? nodePath.hashCode() : 0 );
result = 31 * result + ( timestamp != null ? timestamp.hashCode() : 0 );
return result;
}
}
代码示例来源:origin: net.corda/corda-finance-contracts
@Override
public int hashCode() {
int result = issuance != null ? issuance.hashCode() : 0;
result = 31 * result + (owner != null ? owner.hashCode() : 0);
result = 31 * result + (faceValue != null ? faceValue.hashCode() : 0);
result = 31 * result + (maturityDate != null ? maturityDate.hashCode() : 0);
return result;
}
代码示例来源:origin: com.enonic.xp/core-api
@Override
public int hashCode()
{
int result = nodeVersionId != null ? nodeVersionId.hashCode() : 0;
result = 31 * result + ( nodeState != null ? nodeState.hashCode() : 0 );
result = 31 * result + ( nodePath != null ? nodePath.hashCode() : 0 );
result = 31 * result + ( timestamp != null ? timestamp.hashCode() : 0 );
result = 31 * result + ( nodeId != null ? nodeId.hashCode() : 0 );
return result;
}
内容来源于网络,如有侵权,请联系作者删除!