Sha256: aa2a6e7d9bca0aa283cc039dfee23cd51dedd3ac0689f2551b6fb7a55fbaa69c
Contents?: true
Size: 609 Bytes
Versions: 424
Compression:
Stored size: 609 Bytes
Contents
class Pair { private final int x; private final int y; Pair(final int x, final int y) { this.y = y; this.x = x; } int getX() { return x; } int getY() { return y; } @Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Pair pair = (Pair) o; return x == pair.x && y == pair.y; } @Override public int hashCode() { int result = x; result = 31 * result + y; return result; } }
Version data entries
424 entries across 212 versions & 1 rubygems