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.180 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.180 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.179 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.179 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.178 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.178 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.177 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.177 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.176 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.176 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.175 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.175 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.174 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.174 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.173 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.173 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.172 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.172 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.171 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.171 tracks/java/exercises/word-search/src/main/java/Pair.java