List of usage examples for com.google.common.primitives Longs hashCode
public static int hashCode(long value)
From source file:com.google.template.soy.data.restricted.NumberData.java
@Override public int hashCode() { return Longs.hashCode(Double.doubleToLongBits(toFloat())); }
From source file:com.b2international.collections.longs.LongKeyFloatMapWrapper.java
@Override public int hashCode() { int h = 0;//from w ww .j a va2s. co m final LongIterator i = keySet().iterator(); while (i.hasNext()) { long key = i.next(); float value = get(key); h += Longs.hashCode(key) ^ Float.floatToIntBits(value); } return h; }
From source file:org.apache.mahout.math.VarLongWritable.java
@Override public int hashCode() { return Longs.hashCode(value); }
From source file:com.cloudera.oryx.als.common.NumericIDValue.java
@Override public int hashCode() { return Longs.hashCode(id) ^ Float.floatToIntBits(value); }
From source file:com.facebook.presto.sql.gen.Operations.java
public static int hashCode(long value) { return Longs.hashCode(value); }
From source file:com.b2international.collections.bytes.ByteKeyLongMapWrapper.java
@Override public int hashCode() { int h = 0;// w w w . ja v a 2 s. co m final ByteIterator i = keySet().iterator(); while (i.hasNext()) { byte key = i.next(); long value = get(key); h += Bytes.hashCode(key) ^ Longs.hashCode(value); } return h; }
From source file:org.sosy_lab.cpachecker.util.predicates.bdd.SylvanBDDRegion.java
@Override public int hashCode() { return Longs.hashCode(bddRepr); }
From source file:org.apache.mahout.common.LongPair.java
@Override public int hashCode() { int firstHash = Longs.hashCode(first); // Flip top and bottom 16 bits; this makes the hash function probably different // for (a,b) versus (b,a) return (firstHash >>> 16 | firstHash << 16) ^ Longs.hashCode(second); }
From source file:com.b2international.collections.objects.ObjectKeyLongMapWrapper.java
@Override public int hashCode() { int h = 0;//from ww w . j ava2 s . c o m final Iterator<K> i = keySet().iterator(); while (i.hasNext()) { K key = i.next(); long value = get(key); h += (key == null ? 0 : key.hashCode()) ^ Longs.hashCode(value); } return h; }
From source file:io.prestosql.execution.ScheduledSplit.java
@Override public int hashCode() { return Longs.hashCode(sequenceId); }