Example usage for Java com.google.common.base Predicates fields, constructors, methods, implement or subclass
The text is from its open source code.
Predicate | alwaysFalse() Returns a predicate that always evaluates to false . |
Predicate | alwaysTrue() Returns a predicate that always evaluates to true . |
Predicate | and(Predicate super T> first, Predicate super T> second) Returns a predicate that evaluates to true if both of its components evaluate to true . |
Predicate | and(Iterable extends Predicate super T>> components) Returns a predicate that evaluates to true if each of its components evaluates to true . |
Predicate | and(Predicate super T>... components) Returns a predicate that evaluates to true if each of its components evaluates to true . |
Predicate | assignableFrom(Class> clazz) Returns a predicate that evaluates to true if the class being tested is assignable from the given class. |
Predicate | compose(Predicate predicate, Function function) Returns the composition of a function and a predicate. |
Predicate | contains(Pattern pattern) Returns a predicate that evaluates to true if the CharSequence being tested contains any match for the given regular expression pattern. |
Predicate | containsPattern(String pattern) Returns a predicate that evaluates to true if the CharSequence being tested contains any match for the given regular expression pattern. |
Predicate | equalTo(@Nullable T target) Returns a predicate that evaluates to true if the object being tested equals() the given target or both are null. |
Predicate | in(Collection extends T> target) Returns a predicate that evaluates to true if the object reference being tested is a member of the given collection. |
Predicate | instanceOf(Class> clazz) Returns a predicate that evaluates to true if the object being tested is an instance of the given class. |
Predicate | isNull() Returns a predicate that evaluates to true if the object reference being tested is null. |
Predicate | not(Predicate Returns a predicate that evaluates to true if the given predicate evaluates to false . |
Predicate | notNull() Returns a predicate that evaluates to true if the object reference being tested is not null. |
Predicate | or(Iterable extends Predicate super T>> components) Returns a predicate that evaluates to true if any one of its components evaluates to true . |
Predicate | or(Predicate super T>... components) Returns a predicate that evaluates to true if any one of its components evaluates to true . |
Predicate | or(Predicate super T> first, Predicate super T> second) Returns a predicate that evaluates to true if either of its components evaluates to true . |