List of usage examples for com.google.common.primitives Doubles hashCode
public static int hashCode(double value)
From source file:com.addthis.bundle.value.DefaultDouble.java
@Override public int hashCode() { return Doubles.hashCode(value); }
From source file:org.apache.mahout.graph.linkanalysis.VectorElementWritable.java
@Override public int hashCode() { return index + 31 * Doubles.hashCode(value); }
From source file:com.torodb.torod.core.subdocument.values.ScalarDouble.java
@Override public int hashCode() { return Doubles.hashCode(doubleValue()); }
From source file:com.torodb.mongowp.bson.abst.AbstractBsonDouble.java
@Override public final int hashCode() { return Doubles.hashCode(doubleValue()); }
From source file:com.javachen.grab.common.math.DoubleWeightedMean.java
@Override public int hashCode() { return Longs.hashCode(count) ^ Doubles.hashCode(totalWeight) ^ Doubles.hashCode(mean); }
From source file:org.elasticsearch.common.util.SlicedDoubleList.java
@Override public int hashCode() { int result = 1; for (int i = 0; i < length; i++) { result = 31 * result + Doubles.hashCode(values[offset + i]); }//from w ww .j ava 2s. co m return result; }
From source file:com.facebook.presto.sql.gen.Operations.java
public static int hashCode(double value) { return Doubles.hashCode(value); }
From source file:org.elasticsearch.index.fielddata.util.DoubleArrayRef.java
@Override public int hashCode() { int result = 1; for (int i = start; i < end; i++) { result = 31 * result + Doubles.hashCode(values[i]); }/*from w w w.ja va 2s. com*/ return result; }
From source file:com.cloudera.science.ml.core.vectors.Weighted.java
@Override public int hashCode() { return 17 * thing.hashCode() + 37 * Doubles.hashCode(weight); }
From source file:io.airlift.units.DataSize.java
@Override public int hashCode() { double value = getValue(Unit.BYTE); return Doubles.hashCode(value); }