@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((directory == null) ? 0 : directory.hashCode()); result = prime * result + ((filter == null) ? 0 : filter.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FileBrowsingIndices other = (FileBrowsingIndices) obj; if (directory == null) { if (other.directory != null) return false; } else if (!directory.equals(other.directory)) return false; if (filter == null) { if (other.filter != null) return false; } else if (!filter.equals(other.filter)) return false; return true; }