RangePartition extends PredicateValue { @Override public int hashCode() { return label.hashCode(); } RangePartition(String label);  RangePartition(String key, long fromInclusive, long toInclusive, boolean isNeg); String getLabel(); @Override RangePartition clone(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void requireThatHashCodeIsImplemented() { assertEquals(new RangePartition("foo=0-9").hashCode(), new RangePartition("foo=0-9").hashCode()); }