boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final SearchResult that = (SearchResult)o; if (endOffset != that.endOffset) return false; if (startOffset != that.startOffset) return false; if (fileName != null ? !fileName.equals(that.fileName) : that.fileName != null) return false; return true; }