@Test public void testHashCode() throws Exception { Assert.assertTrue(COLUMN.hashCode() != COLUMN_WITH_ANOTHER_TABLE.hashCode()); Assert.assertTrue(COLUMN.hashCode() != COLUMN_WITH_ANOTHER_ROW.hashCode()); Assert.assertTrue(COLUMN.hashCode() != COLUMN_WITH_ANOTHER_FAMILY.hashCode()); Assert.assertTrue(COLUMN.hashCode() != COLUMN_WITH_ANOTHER_QUALIFIER.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; if (tableName != null) { result = prime * result + Bytes.toString(tableName).hashCode(); } if (row != null) { result = prime * result + Bytes.toString(row).hashCode(); } return prime * result + super.hashCode(); }
ColumnCoordinate extends Column { @Override public int hashCode() { final int prime = 31; int result = 1; if (tableName != null) { result = prime * result + Bytes.toString(tableName).hashCode(); } if (row != null) { result = prime * result + Bytes.toString(row).hashCode(); } return prime * result + super.hashCode(); } }
ColumnCoordinate extends Column { @Override public int hashCode() { final int prime = 31; int result = 1; if (tableName != null) { result = prime * result + Bytes.toString(tableName).hashCode(); } if (row != null) { result = prime * result + Bytes.toString(row).hashCode(); } return prime * result + super.hashCode(); } ColumnCoordinate();  ColumnCoordinate(byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, Column column);  ColumnCoordinate(ColumnCoordinate columnCoordinate); }
ColumnCoordinate extends Column { @Override public int hashCode() { final int prime = 31; int result = 1; if (tableName != null) { result = prime * result + Bytes.toString(tableName).hashCode(); } if (row != null) { result = prime * result + Bytes.toString(row).hashCode(); } return prime * result + super.hashCode(); } ColumnCoordinate();  ColumnCoordinate(byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, Column column);  ColumnCoordinate(ColumnCoordinate columnCoordinate); byte[] getTableName(); byte[] getRow(); void write(DataOutput out); void readFields(DataInput in); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); }
ColumnCoordinate extends Column { @Override public int hashCode() { final int prime = 31; int result = 1; if (tableName != null) { result = prime * result + Bytes.toString(tableName).hashCode(); } if (row != null) { result = prime * result + Bytes.toString(row).hashCode(); } return prime * result + super.hashCode(); } ColumnCoordinate();  ColumnCoordinate(byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, byte[] family, byte[] qualifier);  ColumnCoordinate(byte[] tableName, byte[] row, Column column);  ColumnCoordinate(ColumnCoordinate columnCoordinate); byte[] getTableName(); byte[] getRow(); void write(DataOutput out); void readFields(DataInput in); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString();  }