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