@Test public void testEquals() { for (RowColumnValue rcv : Arrays.asList(rcv1, rcv2)) { Assert.assertEquals(rcv1, rcv); Assert.assertEquals(rcv1.hashCode(), rcv.hashCode()); } for (RowColumnValue rcv : Arrays.asList(rcv3, rcv4, rcv5, rcv6, rcv7)) { Assert.assertNotEquals(rcv1, rcv); Assert.assertNotEquals(rcv1.hashCode(), rcv.hashCode()); } }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RowColumnValue) { RowColumnValue orcv = (RowColumnValue) o; return row.equals(orcv.row) && col.equals(orcv.col) && val.equals(orcv.val); } return false; }
RowColumnValue implements Comparable<RowColumnValue>, Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RowColumnValue) { RowColumnValue orcv = (RowColumnValue) o; return row.equals(orcv.row) && col.equals(orcv.col) && val.equals(orcv.val); } return false; } }
RowColumnValue implements Comparable<RowColumnValue>, Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RowColumnValue) { RowColumnValue orcv = (RowColumnValue) o; return row.equals(orcv.row) && col.equals(orcv.col) && val.equals(orcv.val); } return false; } RowColumnValue(Bytes row, Column col, Bytes val);  RowColumnValue(CharSequence row, Column col, CharSequence val); }
RowColumnValue implements Comparable<RowColumnValue>, Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RowColumnValue) { RowColumnValue orcv = (RowColumnValue) o; return row.equals(orcv.row) && col.equals(orcv.col) && val.equals(orcv.val); } return false; } RowColumnValue(Bytes row, Column col, Bytes val);  RowColumnValue(CharSequence row, Column col, CharSequence val); Bytes getRow(); String getsRow(); Column getColumn(); Bytes getValue(); String getsValue(); RowColumn getRowColumn(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(RowColumnValue o); }
RowColumnValue implements Comparable<RowColumnValue>, Serializable { @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RowColumnValue) { RowColumnValue orcv = (RowColumnValue) o; return row.equals(orcv.row) && col.equals(orcv.col) && val.equals(orcv.val); } return false; } RowColumnValue(Bytes row, Column col, Bytes val);  RowColumnValue(CharSequence row, Column col, CharSequence val); Bytes getRow(); String getsRow(); Column getColumn(); Bytes getValue(); String getsValue(); RowColumn getRowColumn(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(RowColumnValue o);  }