@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AclBinding that = (AclBinding) o;
        return Objects.equals(pattern, that.pattern) &&
            Objects.equals(entry, that.entry);
    }
Create a filter which matches only this AclBinding.
clients/src/main/java/org/apache/kafka/common/acl/AclBinding.java