List of usage examples for java.lang Integer hashCode
public static int hashCode(int value)
From source file:net.mintern.primitive.pair.DoubleIntPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/* www . j ava2 s . c om*/ * @see Double#hashCode(double) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Double.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.BooleanIntPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//ww w . j a v a 2 s . co m * @see Boolean#hashCode(boolean) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Boolean.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjIntPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from w w w . jav a 2s .c om*/ * @see Objects#hashCode(Object) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:org.apache.sysml.hops.codegen.cplan.CNodeRow.java
@Override public int hashCode() { if (_hash == 0) { int h = UtilFunctions.intHashCode(super.hashCode(), _type.hashCode()); h = UtilFunctions.intHashCode(h, Long.hashCode(_constDim2)); _hash = UtilFunctions.intHashCode(h, Integer.hashCode(_numVectors)); }/*w ww .j ava 2 s . co m*/ return _hash; }
From source file:se.sawano.java.security.otp.WindowSize.java
@Override public int hashCode() { return Integer.hashCode(value); }