boolean (Object object) { if (!(object instanceof FilterInfo other)) return false; return Objects.equals(myName, other.myName) && Objects.equals(myDescription, other.myDescription) && Objects.equals(myRegExp, other.myRegExp); }