List of usage examples for java.lang Long hashCode
public static int hashCode(long value)
From source file:net.mintern.primitive.pair.ByteLongPair.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 a2s . c o m*/ * @see Byte#hashCode(byte) * @see Long#hashCode(long) */ @Override public int hashCode() { return Byte.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.IntLongPair.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 o m*/ * @see Integer#hashCode(int) * @see Long#hashCode(long) */ @Override public int hashCode() { return Integer.hashCode(getLeft()) ^ Long.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 ava 2 s. c om*/ * @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.CharLongPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from w ww.j av a2 s . c om*/ * @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.LongBooleanPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from w ww . j a v a 2 s. c om*/ * @see Long#hashCode(long) * @see Boolean#hashCode(boolean) */ @Override public int hashCode() { return Long.hashCode(getLeft()) ^ Boolean.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.DoubleLongPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from ww w . ja v a2s .co m*/ * @see Double#hashCode(double) * @see Long#hashCode(long) */ @Override public int hashCode() { return Double.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.BooleanLongPair.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 2 s . co m * @see Boolean#hashCode(boolean) * @see Long#hashCode(long) */ @Override public int hashCode() { return Boolean.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjLongPair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/*from ww w . ja v a 2 s .c o m*/ * @see Objects#hashCode(Object) * @see Long#hashCode(long) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Long.hashCode(getRight()); }
From source file:org.ulyssis.ipp.snapshot.TagSeenEvent.java
@Override public int hashCode() { return tag.toString().hashCode() ^ readerId ^ getTime().hashCode() ^ Long.hashCode(updateCount); }
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)); }//from w ww . ja v a2 s.c o m return _hash; }