public PathComparator getComparator() {
        return comparator;
    }
Gets the comparison performed on the list.

@return Returns the comparator.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/PathMatcher.java