下面列出了java.util.Arrays#hashCode ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((dummyTable == null) ? 0 : dummyTable.hashCode());
result = prime * result + ((fkInfo == null) ? 0 : fkInfo.hashCode());
//result = prime * result + ((join == null) ? 0 : join.hashCode());
result = prime * result + (nameAutogenned ? 1231 : 1237);
result = prime * result + Arrays.hashCode(path);
result = prime * result
+ ((tableClass == null) ? 0 : tableClass.getName().hashCode());
result = prime * result
+ ((tableName == null) ? 0 : tableName.hashCode());
return result;
}
@Override
public int hashCode() {
if (hashCode == 0) {
hashCode = Arrays.hashCode(trackGroups);
}
return hashCode;
}
@Override
public int hashCode() {
int hash = 5;
hash = 67 * hash + Arrays.hashCode(this.modelPathTimeStamps);
hash = 67 * hash + Arrays.hashCode(this.value);
return hash;
}
@Override public int hashCode() {
int result = 17;
if (tls) {
result = 31 * result + Arrays.hashCode(cipherSuites);
result = 31 * result + Arrays.hashCode(tlsVersions);
result = 31 * result + (supportsTlsExtensions ? 0 : 1);
}
return result;
}
private long getMethodId(ITestResult result) {
long id = result.getTestClass().getName().hashCode();
id = 31 * id + result.getMethod().getMethodName().hashCode();
id = 31
* id
+ (result.getParameters() != null ? Arrays.hashCode(result
.getParameters()) : 0);
// LOGGER.debug("Calculated id for " + result.getMethod().getMethodName() + " is " + id);
return id;
}
@Override
public int hashCode() {
int result = cryptoMode;
result = 31 * result + Arrays.hashCode(encryptionKey);
result = 31 * result + encryptedBlocks;
result = 31 * result + clearBlocks;
return result;
}
@Override
public int hashCode() {
int result = (int) (stream ^ (stream >>> 32));
result = 31 * result + Arrays.hashCode(tag);
result = 31 * result + (decrypted != null ? decrypted.hashCode() : 0);
return result;
}
@Override
public int hashCode() {
return 31 + Arrays.hashCode(names);
}
/**
* Return the hash code of objects.
*/
public static int hashCodes(Object... values) {
return Arrays.hashCode(values);
}
@Override
public int hashCode() {
return Arrays.hashCode(hash);
}
@Override
public int hashCode() {
return _zero ? 0 : Arrays.hashCode(_arr);
}
@Override
public int hashCode() {
return Arrays.hashCode(new Object[] {first, second});
}
public int hashCode() {
return Objects.hash(getName()) ^ Arrays.hashCode(fastGetSignature());
}
@Override
public int hashCode() {
return Arrays.hashCode(_data);
}
@Override
public int hashCode() {
return Arrays.hashCode(this.nameBytes);
}
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + Arrays.hashCode(hash);
return result;
}
public PropertyMapWrapper(final PropertyMap map) {
this.hashCode = Arrays.hashCode(map.getProperties()) + 31 * Objects.hashCode(map.getClassName());
this.propertyMap = map;
}
@Override
public int hashCode() {
return 31 * (31 * Arrays.hashCode(fieldSerializers) + Arrays.hashCode(registeredSerializers)) +
Objects.hash(clazz, numFields, registeredClasses);
}
@Override
public int hashCode() {
return Arrays.hashCode(typeTokens);
}
/**
* Gets a hashCode for the instance.
*
* @return a hash code value for this object
*/
@Override
public int hashCode() {
return 17 + (sign << 8) + (nans << 16) + exp + Arrays.hashCode(mant);
}