List of usage examples for java.lang Character hashCode
public static int hashCode(char value)
From source file:net.mintern.primitive.pair.CharPair.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 a v a2s. c o m*/ * @see Character#hashCode(char) */ @Override public int hashCode() { return Character.hashCode(getLeft()) ^ Character.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.CharIntPair.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 a2 s. c o m*/ * @see Character#hashCode(char) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Character.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.CharBytePair.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 a2 s . c o m*/ * @see Character#hashCode(char) * @see Byte#hashCode(byte) */ @Override public int hashCode() { return Character.hashCode(getLeft()) ^ Byte.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.CharLongPair.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 a 2s. c o m * @see Character#hashCode(char) * @see Long#hashCode(long) */ @Override public int hashCode() { return Character.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.LongCharPair.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 av a 2s. c om*/ * @see Long#hashCode(long) * @see Character#hashCode(char) */ @Override public int hashCode() { return Long.hashCode(getLeft()) ^ Character.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.IntCharPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//w w w . ja v a 2 s . c o m * @see Integer#hashCode(int) * @see Character#hashCode(char) */ @Override public int hashCode() { return Integer.hashCode(getLeft()) ^ Character.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 w w . j a v a 2 s . co m*/ * @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.CharBooleanPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from ww w . j av a 2 s . c om*/ * @see Character#hashCode(char) * @see Boolean#hashCode(boolean) */ @Override public int hashCode() { return Character.hashCode(getLeft()) ^ Boolean.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.DoubleCharPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code//from ww w .jav a2 s . co m * @see Double#hashCode(double) * @see Character#hashCode(char) */ @Override public int hashCode() { return Double.hashCode(getLeft()) ^ Character.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjCharPair.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 a va 2 s . c o m*/ * @see Objects#hashCode(Object) * @see Character#hashCode(char) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Character.hashCode(getRight()); }