@Test public void equalsTest() { Column a = Column.create(5, 7, 100000); Column b = Column.create(5, 7, 100000); assertEquals(a, b); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Column)) { return false; } Column column = (Column) o; return this.defaultColumn == column.defaultColumn && this.rowID == column.rowID && this.columnID == column.columnID && this.rowKey.equals(column.rowKey) && this.columnKey.equals(column.columnKey) && this.timestamp == column.timestamp; }
Column implements Record { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Column)) { return false; } Column column = (Column) o; return this.defaultColumn == column.defaultColumn && this.rowID == column.rowID && this.columnID == column.columnID && this.rowKey.equals(column.rowKey) && this.columnKey.equals(column.columnKey) && this.timestamp == column.timestamp; } }
Column implements Record { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Column)) { return false; } Column column = (Column) o; return this.defaultColumn == column.defaultColumn && this.rowID == column.rowID && this.columnID == column.columnID && this.rowKey.equals(column.rowKey) && this.columnKey.equals(column.columnKey) && this.timestamp == column.timestamp; } private  Column(); }
Column implements Record { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Column)) { return false; } Column column = (Column) o; return this.defaultColumn == column.defaultColumn && this.rowID == column.rowID && this.columnID == column.columnID && this.rowKey.equals(column.rowKey) && this.columnKey.equals(column.columnKey) && this.timestamp == column.timestamp; } private  Column(); static Column create(long rowID, long columnID); static Column create(long rowID, long columnID, long timestamp); static Column create(long rowID, String columnKey); static Column create(long rowID, String columnKey, long timestamp); static Column create(String rowKey, long columnID); static Column create(String rowKey, long columnID, long timestamp); static Column create(String rowKey, String columnKey); static Column create(String rowKey, String columnKey, long timestamp); static Column create(boolean rowBool, long columnID); static Column create(boolean rowBool, long columnID, long timestamp); static Column create(boolean rowBool, String columnKey); static Column create(boolean rowBool, String columnKey, long timestamp); long getRowID(); String getRowKey(); boolean getRowBool(); long getColumnID(); String getColumnKey(); long getTimestamp(); @Override long shard(long shardWidth); @Override int compareTo(Record other); @Override boolean isDefault(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Column implements Record { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Column)) { return false; } Column column = (Column) o; return this.defaultColumn == column.defaultColumn && this.rowID == column.rowID && this.columnID == column.columnID && this.rowKey.equals(column.rowKey) && this.columnKey.equals(column.columnKey) && this.timestamp == column.timestamp; } private  Column(); static Column create(long rowID, long columnID); static Column create(long rowID, long columnID, long timestamp); static Column create(long rowID, String columnKey); static Column create(long rowID, String columnKey, long timestamp); static Column create(String rowKey, long columnID); static Column create(String rowKey, long columnID, long timestamp); static Column create(String rowKey, String columnKey); static Column create(String rowKey, String columnKey, long timestamp); static Column create(boolean rowBool, long columnID); static Column create(boolean rowBool, long columnID, long timestamp); static Column create(boolean rowBool, String columnKey); static Column create(boolean rowBool, String columnKey, long timestamp); long getRowID(); String getRowKey(); boolean getRowBool(); long getColumnID(); String getColumnKey(); long getTimestamp(); @Override long shard(long shardWidth); @Override int compareTo(Record other); @Override boolean isDefault(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Column DEFAULT; }