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

        final ResourcePattern resource = (ResourcePattern) o;
        return resourceType == resource.resourceType &&
            Objects.equals(name, resource.name) &&
            patternType == resource.patternType;
    }
@return {@code true} if this Resource has any UNKNOWN components.
clients/src/main/java/org/apache/kafka/common/resource/ResourcePattern.java