java.util.Arrays#hashCode ( )源码实例Demo

下面列出了java.util.Arrays#hashCode ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: DKO   文件: TableInfo.java

@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;
}
 
源代码2 项目: MediaSDK   文件: TrackGroupArray.java

@Override
public int hashCode() {
  if (hashCode == 0) {
    hashCode = Arrays.hashCode(trackGroups);
  }
  return hashCode;
}
 
源代码3 项目: tasmo   文件: ViewValue.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 67 * hash + Arrays.hashCode(this.modelPathTimeStamps);
    hash = 67 * hash + Arrays.hashCode(this.value);
    return hash;
}
 
源代码4 项目: AndroidProjects   文件: ConnectionSpec.java

@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;
}
 
源代码5 项目: carina   文件: AbstractTestListener.java

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;
}
 
源代码6 项目: Telegram   文件: TrackOutput.java

@Override
public int hashCode() {
  int result = cryptoMode;
  result = 31 * result + Arrays.hashCode(encryptionKey);
  result = 31 * result + encryptedBlocks;
  result = 31 * result + clearBlocks;
  return result;
}
 
源代码7 项目: Jabit   文件: V4Pubkey.java

@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;
}
 
源代码8 项目: SEAL   文件: Entity.java

@Override
public int hashCode() {
  return 31 + Arrays.hashCode(names);
}
 
源代码9 项目: AndroidUtilCode   文件: ObjectUtils.java

/**
 * Return the hash code of objects.
 */
public static int hashCodes(Object... values) {
    return Arrays.hashCode(values);
}
 
源代码10 项目: jblockchain   文件: Transaction.java

@Override
public int hashCode() {
    return Arrays.hashCode(hash);
}
 
源代码11 项目: systemds   文件: DblArray.java

@Override
public int hashCode() {
	return _zero ? 0 : Arrays.hashCode(_arr);
}
 

@Override
public int hashCode() {
  return Arrays.hashCode(new Object[] {first, second});
}
 
源代码13 项目: Java8CN   文件: MBeanConstructorInfo.java

public int hashCode() {
    return Objects.hash(getName()) ^ Arrays.hashCode(fastGetSignature());
}
 
源代码14 项目: jenetics   文件: SimpleIntVec.java

@Override
public int hashCode() {
	return Arrays.hashCode(_data);
}
 
源代码15 项目: fat32-lib   文件: ShortName.java

@Override
public int hashCode() {
    return Arrays.hashCode(this.nameBytes);
}
 
源代码16 项目: bisq   文件: Reputation.java

@Override
public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + Arrays.hashCode(hash);
    return result;
}
 
源代码17 项目: openjdk-jdk9   文件: ConstantData.java

public PropertyMapWrapper(final PropertyMap map) {
    this.hashCode = Arrays.hashCode(map.getProperties()) + 31 * Objects.hashCode(map.getClassName());
    this.propertyMap = map;
}
 
源代码18 项目: flink   文件: PojoSerializer.java

@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);
}
 
源代码20 项目: coming   文件: Dfp_t.java

/**
 * 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);
}