boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FacetAndType type = (FacetAndType)o; return Objects.equals(myFacet, type.myFacet) && Objects.equals(myTypeId, type.myTypeId); }