@Override public int hashCode() { return 31 * RandomUtils.hashDouble(weight) + value.hashCode(); } }
@Override public int hashCode() { int result = size; Iterator<Element> iter = iterateNonZero(); while (iter.hasNext()) { Element ele = iter.next(); result += ele.index() * RandomUtils.hashDouble(ele.get()); } return result; }
@Test public void testHashDouble() { assertEquals(new Double(0.0).hashCode(), RandomUtils.hashDouble(0.0)); assertEquals(new Double(1.0).hashCode(), RandomUtils.hashDouble(1.0)); assertEquals(new Double(Double.POSITIVE_INFINITY).hashCode(), RandomUtils.hashDouble(Double.POSITIVE_INFINITY)); assertEquals(new Double(Double.NaN).hashCode(), RandomUtils.hashDouble(Double.NaN)); }
@Override public int hashCode() { return RandomUtils.hashDouble(value) ^ id; }
@Override public int hashCode() { return (int) itemID1 ^ (int) itemID2 ^ RandomUtils.hashDouble(value); }
@Override public int hashCode() { return (int) userID1 ^ (int) userID2 ^ RandomUtils.hashDouble(value); }
@Override public int hashCode() { return (int) userID1 ^ (int) userID2 ^ RandomUtils.hashDouble(value); }
@Override public int hashCode() { return RandomUtils.hashDouble(weight) ^ index; }
@Override public int hashCode() { return RandomUtils.hashDouble(value) ^ id; }
@Override public int hashCode() { return (int) userID1 ^ (int) userID2 ^ RandomUtils.hashDouble(value); }
@Override public int hashCode() { return (int) userID ^ RandomUtils.hashDouble(similarity); }
@Override public int hashCode() { return (int) userID ^ RandomUtils.hashDouble(similarity); }
@Override public int hashCode() { return RandomUtils.hashDouble(value) ^ id; }
@Override public int hashCode() { return (int) userID ^ RandomUtils.hashDouble(similarity); }
@Override public int hashCode() { return (int) userID ^ RandomUtils.hashDouble(similarity); }
@Override public int hashCode() { return 31 * RandomUtils.hashDouble(weight) + value.hashCode(); } }
@Override public int hashCode() { return term.hashCode() ^ inClusterDF ^ outClusterDF ^ RandomUtils.hashDouble(logLikelihoodRatio); }
@Override public int hashCode() { int result = size; Iterator<Element> iter = iterateNonZero(); while (iter.hasNext()) { Element ele = iter.next(); result += ele.index() * RandomUtils.hashDouble(ele.get()); } return result; }
@Override public int hashCode() { int result = size; Iterator<Element> iter = iterateNonZero(); while (iter.hasNext()) { Element ele = iter.next(); result += ele.index() * RandomUtils.hashDouble(ele.get()); } return result; }
@Test public void testHashDouble() { assertEquals(new Double(0.0).hashCode(), RandomUtils.hashDouble(0.0)); assertEquals(new Double(1.0).hashCode(), RandomUtils.hashDouble(1.0)); assertEquals(new Double(Double.POSITIVE_INFINITY).hashCode(), RandomUtils.hashDouble(Double.POSITIVE_INFINITY)); assertEquals(new Double(Double.NaN).hashCode(), RandomUtils.hashDouble(Double.NaN)); }