Java Hash Code Calculate combineHashCodes(int hashCode1, int hashCode2)

Here you can find the source of combineHashCodes(int hashCode1, int hashCode2)

Description

Combines two hash codes to make a new one.

License

Open Source License

Declaration

public static int combineHashCodes(int hashCode1, int hashCode2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  ww w.  j  a v a  2  s  .  com
     * Combines two hash codes to make a new one.
     */
    public static int combineHashCodes(int hashCode1, int hashCode2) {
        return hashCode1 * 17 + hashCode2;
    }
}

Related

  1. combinedHashCode(Object... objects)
  2. combineHashCodes(final int pHashCode_1, final int pHashCode_2)
  3. combineHashCodes(int hashCode1, int hashCode2)
  4. combineHashCodes(int numA, int numB, int numC)
  5. combineHashCodesHelper(int hashCode1, int hashCode2)
  6. combineHashes(int hash1, int hash2)