Sha256: adba2d722ba64ed5d4acfe1f91c40198296b08dd2783ab49c39ea339cc541249
Contents?: true
Size: 588 Bytes
Versions: 61
Compression:
Stored size: 588 Bytes
Contents
class MatrixCoordinate { private final int row; private final int col; MatrixCoordinate(final int row, final int col) { this.row = row; this.col = col; } // Generated equals and hashcode. @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final MatrixCoordinate that = (MatrixCoordinate) o; return row == that.row && col == that.col; } @Override public int hashCode() { int result = row; result = 31 * result + col; return result; } }
Version data entries
61 entries across 61 versions & 1 rubygems