public boolean isAfter(CellValueRecordInterface i) { if (this.getRow() < i.getRow()) { return false; } if ((this.getRow() == i.getRow()) && (this.getColumn() < i.getColumn())) { return false; } if ((this.getRow() == i.getRow()) && (this.getColumn() == i.getColumn())) { return false; } return true; }
public boolean equals(Object obj) { if (!(obj instanceof CellValueRecordInterface)) { return false; } CellValueRecordInterface loc = (CellValueRecordInterface) obj; if ((this.getRow() == loc.getRow()) && (this.getColumn() == loc.getColumn())) { return true; } return false; }
public int compareTo(Object obj) { CellValueRecordInterface loc = (CellValueRecordInterface) obj; if ((this.getRow() == loc.getRow()) && (this.getColumn() == loc.getColumn())) { return 0; } if (this.getRow() < loc.getRow()) { return -1; } if (this.getRow() > loc.getRow()) { return 1; } if (this.getColumn() < loc.getColumn()) { return -1; } if (this.getColumn() > loc.getColumn()) { return 1; } return -1; }
public boolean isEqual(CellValueRecordInterface i) { return ((this.getRow() == i.getRow()) && (this.getColumn() == i.getColumn())); }