List of usage examples for java.lang Float hashCode
public static int hashCode(float value)
From source file:net.mintern.primitive.pair.FloatPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from ww w .jav a 2 s .co m*/ * @see Float#hashCode(float) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Float.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.FloatIntPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//from w w w.ja v a 2s . c om * @see Float#hashCode(float) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.FloatBytePair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code// www . j ava 2 s . c om * @see Float#hashCode(float) * @see Byte#hashCode(byte) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Byte.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.FloatLongPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//from www . j a va 2 s . c o m * @see Float#hashCode(float) * @see Long#hashCode(long) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.FloatCharPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from w ww .java 2 s . c om*/ * @see Float#hashCode(float) * @see Character#hashCode(char) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Character.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.LongFloatPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from w w w. j ava 2 s.c o m*/ * @see Long#hashCode(long) * @see Float#hashCode(float) */ @Override public int hashCode() { return Long.hashCode(getLeft()) ^ Float.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.IntFloatPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//from ww w . ja va 2s. c o m * @see Integer#hashCode(int) * @see Float#hashCode(float) */ @Override public int hashCode() { return Integer.hashCode(getLeft()) ^ Float.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.FloatBooleanPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//w ww . j a v a2s . co m * @see Float#hashCode(float) * @see Boolean#hashCode(boolean) */ @Override public int hashCode() { return Float.hashCode(getLeft()) ^ Boolean.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.DoubleFloatPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//from www . j a v a 2 s.c o m * @see Double#hashCode(double) * @see Float#hashCode(float) */ @Override public int hashCode() { return Double.hashCode(getLeft()) ^ Float.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjFloatPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/* w ww. ja va2s .c om*/ * @see Objects#hashCode(Object) * @see Float#hashCode(float) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Float.hashCode(getRight()); }