/** * Factory to create the predicate. * * @param <T> the type that the predicate queries * @return the predicate * @throws IllegalArgumentException if the predicate is null */ public static <T> Predicate<T> uniquePredicate() { return new UniquePredicate<>(); }