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