public class Functions extends Object
| 构造器和说明 |
|---|
Functions() |
public static <E> Function<E,E> noopFunction()
public static <E> Mapper<E,E> noopMapper()
public static <E> Predicate<E> nonNullPredicate()
public static <E> Predicate<E> nullPredicate()
public static <E> Predicate<E> emptyPredicate()
public static <E> Predicate<E> notEmptyPredicate()
public static <E> Predicate<E> truePredicate()
public static <E> Predicate<E> falsePredicate()
public static <E> Predicate<E> booleanPredicate(boolean value)
public static <E1,E2> Predicate2<E1,E2> truePredicate2()
public static <E1,E2> Predicate2<E1,E2> falsePredicate2()
public static <E1,E2> Predicate2<E1,E2> booleanPredicate2(boolean value)
public static <E1,E2> Predicate2<E1,E2> deepEqualsPredicate()
public static <E1,E2> Predicate2<E1,E2> equalsPredicate()
public static <I,E> Supplier<I,LinkedHashSet<E>> emptyLinkedHashSetSupplier()
public static <E> Supplier0<TreeSet<E>> emptyTreeSetSupplier0(Comparator<E> comparator)
public static <I,V> Supplier<I,Set<V>> emptyTreeSetSupplier(Comparator<V> comparator)
public static <T> Supplier<T,T> noopSupplier()
Copyright © 2020. All rights reserved.