/** * Default implementation of TLongHashingStrategy: * delegates hashing to HashFunctions.hash(long). * * @param val the value to hash * @return the hashcode. */ public final int computeHashCode(long val) { return HashFunctions.hash(val); } } // TLongHash
@Override // GemStoneAddition public int hashCode() { int h = 0; for (int i = _pos; i-- > 0;) { h += HashFunctions.hash(_data[i]); } return h; }
@Override // GemStoneAddition public int hashCode() { int h = 0; for (int i = _pos; i-- > 0;) { h += HashFunctions.hash(_data[i]); } return h; }
/** * Default implementation of TDoubleHashingStrategy: * delegates hashing to HashFunctions.hash(double). * * @param val the value to hash * @return the hashcode. */ public final int computeHashCode(double val) { return HashFunctions.hash(val); } } // TDoubleHash
public final boolean execute(float key, long value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(int key, long value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(long key, float value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(double key, Object value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(float key, int value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(float key, Object value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(long key, long value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(int key, double value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(float key, float value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(int key, Object value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(long key, int value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(float key, double value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(double key, int value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(long key, Object value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(double key, float value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }
public final boolean execute(int key, float value) { h += (_hashingStrategy.computeHashCode(key) ^ HashFunctions.hash(value)); return true; } }