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

Version Path
trackler-2.2.1.8 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.8 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.7 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.7 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.6 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.6 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.5 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.5 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.4 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.4 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.3 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.3 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.2 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.2 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.1 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.1.1 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.0 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.0 tracks/java/exercises/word-search/src/example/java/Pair.java
trackler-2.2.0.6 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.0.6 tracks/java/exercises/word-search/src/example/java/Pair.java