Java Code Examples for java.util.Arrays#hashCode()

The following examples show how to use java.util.Arrays#hashCode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableInfo.java    From DKO with GNU Lesser General Public License v2.1 7 votes vote down vote up
@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;
}
 
Example 2
Source File: ViewValue.java    From tasmo with Apache License 2.0 7 votes vote down vote up
@Override
public int hashCode() {
    int hash = 5;
    hash = 67 * hash + Arrays.hashCode(this.modelPathTimeStamps);
    hash = 67 * hash + Arrays.hashCode(this.value);
    return hash;
}
 
Example 3
Source File: V4Pubkey.java    From Jabit with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 4
Source File: TrackOutput.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public int hashCode() {
  int result = cryptoMode;
  result = 31 * result + Arrays.hashCode(encryptionKey);
  result = 31 * result + encryptedBlocks;
  result = 31 * result + clearBlocks;
  return result;
}
 
Example 5
Source File: ConnectionSpec.java    From AndroidProjects with MIT License 5 votes vote down vote up
@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;
}
 
Example 6
Source File: AbstractTestListener.java    From carina with Apache License 2.0 5 votes vote down vote up
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;
}
 
Example 7
Source File: TrackGroupArray.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  if (hashCode == 0) {
    hashCode = Arrays.hashCode(trackGroups);
  }
  return hashCode;
}
 
Example 8
Source File: TestReflectLogicalTypes.java    From parquet-mr with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
  return Arrays.hashCode(new Object[] {first, second});
}
 
Example 9
Source File: TypeTokenContainer.java    From firebase-android-sdk with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
  return Arrays.hashCode(typeTokens);
}
 
Example 10
Source File: PojoSerializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
	return 31 * (31 * Arrays.hashCode(fieldSerializers) + Arrays.hashCode(registeredSerializers)) +
		Objects.hash(clazz, numFields, registeredClasses);
}
 
Example 11
Source File: ConstantData.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public PropertyMapWrapper(final PropertyMap map) {
    this.hashCode = Arrays.hashCode(map.getProperties()) + 31 * Objects.hashCode(map.getClassName());
    this.propertyMap = map;
}
 
Example 12
Source File: Reputation.java    From bisq with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + Arrays.hashCode(hash);
    return result;
}
 
Example 13
Source File: ShortName.java    From fat32-lib with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public int hashCode() {
    return Arrays.hashCode(this.nameBytes);
}
 
Example 14
Source File: SimpleIntVec.java    From jenetics with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
	return Arrays.hashCode(_data);
}
 
Example 15
Source File: MBeanConstructorInfo.java    From Java8CN with Apache License 2.0 4 votes vote down vote up
public int hashCode() {
    return Objects.hash(getName()) ^ Arrays.hashCode(fastGetSignature());
}
 
Example 16
Source File: DblArray.java    From systemds with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
	return _zero ? 0 : Arrays.hashCode(_arr);
}
 
Example 17
Source File: Transaction.java    From jblockchain with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
    return Arrays.hashCode(hash);
}
 
Example 18
Source File: ObjectUtils.java    From AndroidUtilCode with Apache License 2.0 4 votes vote down vote up
/**
 * Return the hash code of objects.
 */
public static int hashCodes(Object... values) {
    return Arrays.hashCode(values);
}
 
Example 19
Source File: Entity.java    From SEAL with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
  return 31 + Arrays.hashCode(names);
}
 
Example 20
Source File: Dfp_t.java    From coming with MIT License 2 votes vote down vote up
/**
 * 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);
}