Interface Predicate2<T1,T2>
- All Superinterfaces:
BiPredicate<T1,,T2> Serializable
- All Known Implementing Classes:
CheckedPredicate2,MapEntryPredicate,PairPredicate,Predicates2,Predicates2.AlwaysFalse,Predicates2.AlwaysTrue,Predicates2.And,Predicates2.AttributePredicates2,Predicates2.Equal,Predicates2.GreaterThan,Predicates2.GreaterThanOrEqual,Predicates2.In,Predicates2.IsIdentical,Predicates2.IsInstanceOf,Predicates2.IsNull,Predicates2.LessThan,Predicates2.LessThanOrEqual,Predicates2.Not,Predicates2.NotEqual,Predicates2.NotIdentitical,Predicates2.NotIn,Predicates2.NotInstanceOf,Predicates2.NotNull,Predicates2.Or,Predicates2.ThrowingPredicate2Adapter,StringPredicates2.ContainsString,StringPredicates2.EndsWith,StringPredicates2.EqualsIgnoreCase,StringPredicates2.MatchesRegex,StringPredicates2.NotContainsString,StringPredicates2.NotEndsWith,StringPredicates2.NotEqualsIgnoreCase,StringPredicates2.NotStartsWith,StringPredicates2.StartsWith
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A Predicate2 is primarily used in methods like selectWith, detectWith, rejectWith. The first argument
is the element of the collection being iterated over, and the second argument is a parameter passed into
the predicate from the calling method.
-
Method Summary
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Method Details
-
accept
-
test
- Specified by:
testin interfaceBiPredicate<T1,T2>
-