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.170 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.170 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.169 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.169 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.167 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.167 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.166 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.166 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.165 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.165 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.164 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.164 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.163 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.163 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.162 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.162 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.161 tracks/java/exercises/word-search/src/main/java/Pair.java
trackler-2.2.1.161 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.160 tracks/java/exercises/word-search/.meta/src/reference/java/Pair.java
trackler-2.2.1.160 tracks/java/exercises/word-search/src/main/java/Pair.java