Here you can find the source of combineHashesUnsorted(final int a, final int b)
Parameter | Description |
---|---|
a | the first hash code |
b | the second hash code |
public static final int combineHashesUnsorted(final int a, final int b)
//package com.java2s; //License from project: MIT License public class Main { /**//from www .j a v a 2 s .c o m * Combine two hash codes. This operator returns a result which depends * on both hash codes {@code a} and {@code b}. This result does not * depend on the order of the parameters, i.e., it is the same for * {@code (a, b)} and {@code (b, a)}. * * @param a * the first hash code * @param b * the second hash code * @return the combined hash code */ public static final int combineHashesUnsorted(final int a, final int b) { return (a + b); } }