@Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        final ResourcePatternFilter resource = (ResourcePatternFilter) o;
        return resourceType == resource.resourceType &&
            Objects.equals(name, resource.name) &&
            patternType == resource.patternType;
    }
@return a string describing any ANY or UNKNOWN field, or null if there is no such field.
clients/src/main/java/org/apache/kafka/common/resource/ResourcePatternFilter.java