/** * Checks if this column equals another. * * @param that * column to compare * @return true if this column equals that, false otherwise */ public boolean equals(Column that) { return this.compareTo(that) == 0; }
/** * Checks if this column equals another. * * @param that * column to compare * @return true if this column equals that, false otherwise */ public boolean equals(Column that) { return this.compareTo(that) == 0; }
@Override public int compareTo(RowColumn other) { int result = row.compareTo(other.row); if (result != 0) return result; return column.compareTo(other.column); }
if (min.compareTo(max) > 0) { throw new IllegalArgumentException("min column > max column " + min + " " + max);
if (min.compareTo(max) > 0) { throw new IllegalArgumentException("min column > max column " + min + " " + max);