/** * Returns whether this search result represents the same logical result * as another. * * @param other Another object (presumably another * <code>SearchResult</code>). */ @Override public boolean equals(Object other) { if (other==this) { return true; } if (other instanceof SearchResult) { return this.compareTo((SearchResult)other)==0; } return false; }
/** * Returns whether this search result represents the same logical result * as another. * * @param other Another object (presumably another * <code>SearchResult</code>). */ @Override public boolean equals(Object other) { if (other==this) { return true; } if (other instanceof SearchResult) { return this.compareTo((SearchResult)other)==0; } return false; }