Package org.apache.dubbo.common.function
Interface Predicates
public interface Predicates
The utilities class for Java
Predicate- Since:
- 2.7.5
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> Predicate<T> Predicatealways returnfalsestatic <T> Predicate<T> Predicatealways returntruestatic <T> Predicate<T> a composed predicate that represents a short-circuiting logical AND ofpredicatesstatic <T> Predicate<T> a composed predicate that represents a short-circuiting logical OR ofpredicates
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
alwaysTrue
Predicatealways returntrue- Type Parameters:
T- the type to test- Returns:
true
-
alwaysFalse
Predicatealways returnfalse- Type Parameters:
T- the type to test- Returns:
false
-
and
a composed predicate that represents a short-circuiting logical AND ofpredicates- Type Parameters:
T- the type to test- Parameters:
predicates-predicates- Returns:
- non-null
-
or
a composed predicate that represents a short-circuiting logical OR ofpredicates- Type Parameters:
T- the detected type- Parameters:
predicates-predicates- Returns:
- non-null
-