boolean (@Nullable Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; IgnoredFileBean that = (IgnoredFileBean)o; if (!Objects.equals(myPath, that.myPath)) return false; if (!Objects.equals(myMask, that.myMask)) return false; if (myType != that.myType) return false; return true; }