本文整理了Java中java.util.ArrayList.hashCode()
方法的一些代码示例,展示了ArrayList.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayList.hashCode()
方法的具体详情如下:
包路径:java.util.ArrayList
类名称:ArrayList
方法名:hashCode
暂无
代码示例来源:origin: ReactiveX/RxJava
@Override
public int hashCode() {
return list.hashCode();
}
代码示例来源:origin: eclipse-vertx/vert.x
@Override
public int hashCode() {
int result = certPaths.hashCode();
result = 31 * result + certValues.hashCode();
return result;
}
}
代码示例来源:origin: redisson/redisson
@Override
public int hashCode() {
return list.hashCode();
}
代码示例来源:origin: apache/hive
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((expressions == null) ? 0 : expressions.hashCode());
return result;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((expressions == null) ? 0 : expressions.hashCode());
return result;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
return allStructFieldNames.hashCode() ^ allStructFieldTypeInfos.hashCode();
}
代码示例来源:origin: apache/kylin
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + baseId;
result = prime * result + ((trees == null) ? 0 : trees.hashCode());
return result;
}
代码示例来源:origin: syncany/syncany
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((branch == null) ? 0 : branch.hashCode());
return result;
}
代码示例来源:origin: wildfly/wildfly
public int hashCode() {
return segments.hashCode();
}
代码示例来源:origin: apache/drill
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((expressions == null) ? 0 : expressions.hashCode());
return result;
}
代码示例来源:origin: apache/drill
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((expressions == null) ? 0 : expressions.hashCode());
return result;
}
代码示例来源:origin: Sable/soot
/**
* {@inheritDoc}
*/
public int hashCode() {
return worklist.hashCode();
}
}
代码示例来源:origin: apache/flink
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((indexes == null) ? 0 : indexes.hashCode());
result = prime * result + ((orders == null) ? 0 : orders.hashCode());
result = prime * result + ((types == null) ? 0 : types.hashCode());
return result;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
int result = metaStoreUri != null ? metaStoreUri.hashCode() : 0;
result = 31 * result + (database != null ? database.hashCode() : 0);
result = 31 * result + (table != null ? table.hashCode() : 0);
result = 31 * result + partitionVals.hashCode();
return result;
}
代码示例来源:origin: apache/geode
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (int) (long_0 ^ (long_0 >>> 32));
result = prime * result + ((string_0 == null) ? 0 : string_0.hashCode());
result = prime * result + Arrays.hashCode(string_array);
result = prime * result + ((string_list == null) ? 0 : string_list.hashCode());
return result;
}
代码示例来源:origin: kiegroup/jbpm
public static int hashCode(List list) {
if ( list == null ) {
return 0;
}
if ( list.isEmpty() ) {
return 1;
}
ArrayList<?> tmp = new ArrayList<>(list);
Collections.sort(tmp, (o1, o2) -> Integer.compare(o1.hashCode(), o2.hashCode()));
return tmp.hashCode();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public int hashCode() {
int hash = 7;
hash = 97 * hash + (this.format != null ? this.format.hashCode() : 0);
hash = 97 * hash + this.width;
hash = 97 * hash + this.height;
hash = 97 * hash + this.depth;
hash = 97 * hash + Arrays.hashCode(this.mipMapSizes);
hash = 97 * hash + (this.data != null ? this.data.hashCode() : 0);
hash = 97 * hash + this.multiSamples;
return hash;
}
代码示例来源:origin: eclipse-vertx/vert.x
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (tcpNoDelay ? 1 : 0);
result = 31 * result + (tcpFastOpen ? 1 : 0);
result = 31 * result + (tcpCork ? 1 : 0);
result = 31 * result + (tcpQuickAck ? 1 : 0);
result = 31 * result + (tcpKeepAlive ? 1 : 0);
result = 31 * result + soLinger;
result = 31 * result + (usePooledBuffers ? 1 : 0);
result = 31 * result + idleTimeout;
result = 31 * result + (idleTimeoutUnit != null ? idleTimeoutUnit.hashCode() : 0);
result = 31 * result + (ssl ? 1 : 0);
result = 31 * result + (keyCertOptions != null ? keyCertOptions.hashCode() : 0);
result = 31 * result + (trustOptions != null ? trustOptions.hashCode() : 0);
result = 31 * result + (enabledCipherSuites != null ? enabledCipherSuites.hashCode() : 0);
result = 31 * result + (crlPaths != null ? crlPaths.hashCode() : 0);
result = 31 * result + (crlValues != null ? crlValues.hashCode() : 0);
result = 31 * result + (useAlpn ? 1 : 0);
result = 31 * result + (sslEngineOptions != null ? sslEngineOptions.hashCode() : 0);
result = 31 * result + (enabledSecureTransportProtocols != null ? enabledSecureTransportProtocols
.hashCode() : 0);
return result;
}
}
代码示例来源:origin: cmusphinx/sphinx4
@Override
public int hashCode() {
return 31 * (Arrays.hashCode(isyms) +
31 * (Arrays.hashCode(osyms) +
31 * ((start == null ? 0 : start.hashCode()) +
31 * ((states == null ? 0 : states.hashCode()) +
31 * ((semiring == null ? 0 : semiring.hashCode()))))));
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public int hashCode() {
int res = innerLongCol != null ? innerLongCol.hashCode() : 0;
res = 31 * res + (innerStrCol != null ? innerStrCol.hashCode() : 0);
res = 31 * res + (arrListCol != null ? arrListCol.hashCode() : 0);
return res;
}
}
内容来源于网络,如有侵权,请联系作者删除!