List of usage examples for java.util Objects hashCode
public static int hashCode(Object o)
From source file:entity.Customer.java
@Override public int hashCode() { int hash = 5; hash = 97 * hash + Objects.hashCode(this.id); return this.id; }
From source file:org.sigmah.server.domain.category.CategoryElement.java
/** * {@inheritDoc}/* ww w.ja v a 2s . co m*/ */ @Override public int hashCode() { int hash = 7; hash = 17 * hash + Objects.hashCode(this.label); hash = 17 * hash + Objects.hashCode(this.color); return hash; }
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 ww w . j av a2 s.c o m*/ * @see Objects#hashCode(Object) * @see Integer#hashCode(int) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Integer.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjBytePair.java
/** * Returns a hash code that follows the definition in {@link java.util.Map.Entry#hashCode()}. * * @return the hash code/* www. ja va 2 s .c o m*/ * @see Objects#hashCode(Object) * @see Byte#hashCode(byte) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Byte.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. j a 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: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// w ww. j a va 2 s . co m * @see Objects#hashCode(Object) * @see Character#hashCode(char) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Character.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//from w ww .ja va 2s . c o m * @see Objects#hashCode(Object) * @see Float#hashCode(float) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Float.hashCode(getRight()); }
From source file:net.mintern.primitive.pair.ObjDoublePair.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 a2 s .c o m*/ * @see Objects#hashCode(Object) * @see Double#hashCode(double) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Double.hashCode(getRight()); }
From source file:com.javiermoreno.springboot.rest.CustomUserDetails.java
@Override public int hashCode() { int hash = 3; hash = 79 * hash + Objects.hashCode(this.username); return hash; }
From source file:net.mintern.primitive.pair.ObjBooleanPair.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 a2 s . c o m*/ * @see Objects#hashCode(Object) * @see Boolean#hashCode(boolean) */ @Override public int hashCode() { return Objects.hashCode(getLeft()) ^ Boolean.hashCode(getRight()); }