Sha256: a329528f26c30f64f1002b548f9e25407973814a3b8fe9519b1993aab7358a27
Contents?: true
Size: 594 Bytes
Versions: 85
Compression:
Stored size: 594 Bytes
Contents
final 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
85 entries across 73 versions & 1 rubygems