本文整理了Java中java.time.Duration.hashCode()
方法的一些代码示例,展示了Duration.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Duration.hashCode()
方法的具体详情如下:
包路径:java.time.Duration
类名称:Duration
方法名:hashCode
[英]A hash code for this duration.
[中]此持续时间的哈希代码。
代码示例来源:origin: bootique/bootique
@Override
public int hashCode() {
return duration.hashCode();
}
代码示例来源:origin: ehcache/ehcache3
@Override
public int hashCode() {
int result = readOperationTimeout.hashCode();
result = 31 * result + writeOperationTimeout.hashCode();
result = 31 * result + connectionTimeout.hashCode();
return result;
}
代码示例来源:origin: ehcache/ehcache3
@Override
public int hashCode() {
return tti.hashCode();
}
代码示例来源:origin: ehcache/ehcache3
@Override
public int hashCode() {
return ttl.hashCode();
}
代码示例来源:origin: ehcache/ehcache3
@Override
public int hashCode() {
int result;
long temp;
temp = Double.doubleToLongBits(phi);
result = (int) (temp ^ (temp >>> 32));
result = 31 * result + bucketCount;
result = 31 * result + window.hashCode();
return result;
}
}
代码示例来源:origin: spring-projects/spring-integration
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.duration == null) ? 0 : this.duration.hashCode());
result = prime * result + (this.fixedRate ? 1231 : 1237);
result = prime * result + ((this.initialDuration == null) ? 0 : this.initialDuration.hashCode());
return result;
}
代码示例来源:origin: rakam-io/rakam
@Override
public int hashCode() {
int result = tableName.hashCode();
result = 31 * result + query.hashCode();
result = 31 * result + (incremental ? 1 : 0);
result = 31 * result + (realTime ? 1 : 0);
result = 31 * result + (updateInterval != null ? updateInterval.hashCode() : 0);
result = 31 * result + (options != null ? options.hashCode() : 0);
return result;
}
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.duration == null) ? 0 : this.duration.hashCode());
result = prime * result + (this.fixedRate ? 1231 : 1237);
result = prime * result + ((this.initialDuration == null) ? 0 : this.initialDuration.hashCode());
return result;
}
代码示例来源:origin: org.ehcache/ehcache-clustered
@Override
public int hashCode() {
int result = readOperationTimeout.hashCode();
result = 31 * result + writeOperationTimeout.hashCode();
result = 31 * result + connectionTimeout.hashCode();
return result;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code name}, {@code stagingTimeout}, {@code startupTimeout}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + name.hashCode();
h += (h << 5) + stagingTimeout.hashCode();
h += (h << 5) + startupTimeout.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code name}, {@code stagingTimeout}, {@code startupTimeout}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + name.hashCode();
h += (h << 5) + stagingTimeout.hashCode();
h += (h << 5) + startupTimeout.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code name}, {@code stagingTimeout}, {@code startupTimeout}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + name.hashCode();
h += (h << 5) + stagingTimeout.hashCode();
h += (h << 5) + startupTimeout.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}, {@code name}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
h += (h << 5) + name.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}, {@code name}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
h += (h << 5) + name.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}, {@code name}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
h += (h << 5) + name.hashCode();
return h;
}
代码示例来源:origin: org.hibernate.validator/hibernate-validator
private int createHashCode() {
int result = System.identityHashCode( scriptEvaluatorFactory );
result = 31 * result + System.identityHashCode( clockProvider );
result = 31 * result + temporalValidationTolerance.hashCode();
return result;
}
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}, {@code deleteRoutes}, {@code name}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
h += (h << 5) + Objects.hashCode(deleteRoutes);
h += (h << 5) + name.hashCode();
return h;
}
代码示例来源:origin: HubSpot/slack-client
/**
* Computes a hash code from attributes: {@code request}, {@code response}, {@code exchangeDuration}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 31;
h = h * 17 + request.hashCode();
h = h * 17 + response.hashCode();
h = h * 17 + exchangeDuration.hashCode();
return h;
}
代码示例来源:origin: org.cloudfoundry/cloudfoundry-operations
/**
* Computes a hash code from attributes: {@code completionTimeout}, {@code organizationName}, {@code serviceName}, {@code servicePlanName}.
* @return hashCode value
*/
@Override
public int hashCode() {
int h = 5381;
h += (h << 5) + completionTimeout.hashCode();
h += (h << 5) + Objects.hashCode(organizationName);
h += (h << 5) + serviceName.hashCode();
h += (h << 5) + Objects.hashCode(servicePlanName);
return h;
}
内容来源于网络,如有侵权,请联系作者删除!