@Test public void testHashCode() { ColumnVisibility cvis = new ColumnVisibility(VISIBILITY); c.setVisibility(cvis); c.setValue(VALUE); c.setTimestamp(1234L); c.setIterators(ITERATORS); int hc1 = c.hashCode(); Condition c2 = new Condition(FAMILY, QUALIFIER); c2.setVisibility(cvis); c2.setValue(VALUE); c2.setTimestamp(1234L); c2.setIterators(ITERATORS); assertEquals(c, c2); assertEquals(hc1, c2.hashCode()); }
@Override public int hashCode() { int result = Objects.hash(cf, cq, cv, val, ts); result = 31 * result + Arrays.hashCode(iterators); return result; }
Condition { @Override public int hashCode() { int result = Objects.hash(cf, cq, cv, val, ts); result = 31 * result + Arrays.hashCode(iterators); return result; } }
Condition { @Override public int hashCode() { int result = Objects.hash(cf, cq, cv, val, ts); result = 31 * result + Arrays.hashCode(iterators); return result; } Condition(CharSequence cf, CharSequence cq);  Condition(byte[] cf, byte[] cq);  Condition(Text cf, Text cq);  Condition(ByteSequence cf, ByteSequence cq); }
Condition { @Override public int hashCode() { int result = Objects.hash(cf, cq, cv, val, ts); result = 31 * result + Arrays.hashCode(iterators); return result; } Condition(CharSequence cf, CharSequence cq);  Condition(byte[] cf, byte[] cq);  Condition(Text cf, Text cq);  Condition(ByteSequence cf, ByteSequence cq); ByteSequence getFamily(); ByteSequence getQualifier(); Condition setTimestamp(long ts); Long getTimestamp(); Condition setValue(CharSequence value); Condition setValue(byte[] value); Condition setValue(Text value); Condition setValue(ByteSequence value); ByteSequence getValue(); Condition setVisibility(ColumnVisibility cv); ByteSequence getVisibility(); Condition setIterators(IteratorSetting... iterators); IteratorSetting[] getIterators(); @Override boolean equals(Object o); @Override int hashCode(); }
Condition { @Override public int hashCode() { int result = Objects.hash(cf, cq, cv, val, ts); result = 31 * result + Arrays.hashCode(iterators); return result; } Condition(CharSequence cf, CharSequence cq);  Condition(byte[] cf, byte[] cq);  Condition(Text cf, Text cq);  Condition(ByteSequence cf, ByteSequence cq); ByteSequence getFamily(); ByteSequence getQualifier(); Condition setTimestamp(long ts); Long getTimestamp(); Condition setValue(CharSequence value); Condition setValue(byte[] value); Condition setValue(Text value); Condition setValue(ByteSequence value); ByteSequence getValue(); Condition setVisibility(ColumnVisibility cv); ByteSequence getVisibility(); Condition setIterators(IteratorSetting... iterators); IteratorSetting[] getIterators(); @Override boolean equals(Object o); @Override int hashCode();  }