Sha256: 5871b216bb74354699125cb9ff83617225295f094d03215699c2b941d6f42e74

Contents?: true

Size: 705 Bytes

Versions: 424

Compression:

Stored size: 705 Bytes

Contents

class WordLocation {

    private final Pair startCoord;

    private final Pair endCoord;

    WordLocation(final Pair startCoord, final Pair endCoord) {
        this.startCoord = startCoord;
        this.endCoord = endCoord;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WordLocation that = (WordLocation) o;

        return startCoord.equals(that.startCoord) && endCoord.equals(that.endCoord);
    }

    @Override
    public int hashCode() {
        int result = startCoord.hashCode();
        result = 31 * result + endCoord.hashCode();
        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/WordLocation.java
trackler-2.2.1.170 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.169 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.169 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.167 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.167 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.166 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.166 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.165 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.165 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.164 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.164 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.163 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.163 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.162 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.162 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.161 tracks/java/exercises/word-search/src/main/java/WordLocation.java
trackler-2.2.1.161 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.160 tracks/java/exercises/word-search/.meta/src/reference/java/WordLocation.java
trackler-2.2.1.160 tracks/java/exercises/word-search/src/main/java/WordLocation.java