@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (!(o instanceof PathMatcher)) {
            return false;
        }

        PathMatcher that = (PathMatcher) o;
        return getPath().equals(that.getPath())
                && getComparator().equals(that.getComparator())
                && getExpected().equals(that.getExpected());
    }
Creates a new instance from a {@link Node}.

@param node Node tom create the PathMatcher from.
@return Returns the created PathMatcher.
@throws ExpectationNotMetException if the given Node is invalid.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/PathMatcher.java