@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlobPattern that = (GlobPattern) o;
        return Objects.equals(pattern, that.pattern) && Arrays.equals(boundaries, that.boundaries);
    }
Matching engine for glob patterns having where one ore more alternative characters acts a boundary for wildcard matching.

@author bjorncs
security-utils/src/main/java/com/yahoo/security/tls/GlobPattern.java