本文整理了Java中java.util.Collection.hashCode()
方法的一些代码示例,展示了Collection.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Collection.hashCode()
方法的具体详情如下:
包路径:java.util.Collection
类名称:Collection
方法名:hashCode
[英]Returns an integer hash code for the receiver. Objects which are equal return the same value for this method.
[中]返回接收器的整数哈希代码。相等的对象为此方法返回相同的值。
代码示例来源:origin: google/guava
@Override
public int hashCode() {
return target.hashCode();
}
代码示例来源:origin: bumptech/glide
@Override
public int hashCode() {
return transformations.hashCode();
}
代码示例来源:origin: prestodb/presto
@Override
public int hashCode() {
return target.hashCode();
}
代码示例来源:origin: apache/flink
@Override
public int hashCode() {
return this.collection.hashCode();
}
代码示例来源:origin: google/j2objc
@Override
public int hashCode() {
return target.hashCode();
}
代码示例来源:origin: stanfordnlp/CoreNLP
public int hashCode() {
return features.hashCode();
}
代码示例来源:origin: commons-collections/commons-collections
public int hashCode() {
synchronized (lock) {
return collection.hashCode();
}
}
代码示例来源:origin: neo4j/neo4j
@Override
public int hashCode()
{
int result = commands.hashCode();
result = 31 * result + (additionalHeader != null ? Arrays.hashCode( additionalHeader ) : 0);
result = 31 * result + masterId;
result = 31 * result + authorId;
result = 31 * result + (int) (timeStarted ^ (timeStarted >>> 32));
result = 31 * result + (int) (latestCommittedTxWhenStarted ^ (latestCommittedTxWhenStarted >>> 32));
return result;
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public int hashCode() {
return getContent().hashCode();
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public int hashCode() {
return getContent().hashCode();
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public int hashCode() {
return getContent().hashCode();
}
代码示例来源:origin: apache/kafka
@Override
public int hashCode() {
int result = owner != null ? owner.hashCode() : 0;
result = 31 * result + (renewers != null ? renewers.hashCode() : 0);
result = 31 * result + (int) (issueTimestamp ^ (issueTimestamp >>> 32));
result = 31 * result + (int) (maxTimestamp ^ (maxTimestamp >>> 32));
result = 31 * result + (tokenId != null ? tokenId.hashCode() : 0);
return result;
}
}
代码示例来源:origin: gocd/gocd
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (artifact_id != null ? artifact_id.hashCode() : 0);
result = 31 * result + (configuration != null ? configuration.hashCode() : 0);
return result;
}
}
代码示例来源:origin: commons-collections/commons-collections
public int hashCode() {
if (fast) {
return get(map).hashCode();
} else {
synchronized (map) {
return get(map).hashCode();
}
}
}
代码示例来源:origin: commons-collections/commons-collections
public int hashCode() {
if (fast) {
return get(map).hashCode();
} else {
synchronized (map) {
return get(map).hashCode();
}
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public int hashCode() {
checkInit();
return delegate.hashCode();
}
}
代码示例来源:origin: spring-projects/spring-security-oauth
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + (approved ? 1231 : 1237);
result = prime * result + ((authorities == null) ? 0 : authorities.hashCode());
result = prime * result + ((extensions == null) ? 0 : extensions.hashCode());
result = prime * result + ((redirectUri == null) ? 0 : redirectUri.hashCode());
result = prime * result + ((resourceIds == null) ? 0 : resourceIds.hashCode());
result = prime * result + ((responseTypes == null) ? 0 : responseTypes.hashCode());
return result;
}
代码示例来源:origin: gocd/gocd
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (plugin_configuration != null ? plugin_configuration.hashCode() : 0);
result = 31 * result + (configuration != null ? configuration.hashCode() : 0);
return result;
}
代码示例来源:origin: robolectric/robolectric
@Override
public int hashCode() {
int result = observerId;
result = 31 * result + packageNames.hashCode();
result = 31 * result + (int) (timeLimit ^ (timeLimit >>> 32));
result = 31 * result + timeUnit.hashCode();
result = 31 * result + callbackIntent.hashCode();
return result;
}
}
代码示例来源:origin: gocd/gocd
@Override
public int hashCode() {
int result = getId() != null ? getId().hashCode() : 0;
result = 31 * result + (store_id != null ? store_id.hashCode() : 0);
result = 31 * result + (getConfiguration() != null ? getConfiguration().hashCode() : 0);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!