L - the left argument type.R - the right argument type.public class TransposedPredicate<L,R> extends Object implements BinaryPredicate<L,R>
predicate.
For example, given a predicate p
and the ordered pair of arguments a,
b.
tests
p.test(b,a).| Constructor and Description |
|---|
TransposedPredicate(BinaryPredicate<? super R,? super L> predicate)
Create a new TransposedPredicate.
|
public TransposedPredicate(BinaryPredicate<? super R,? super L> predicate)
predicate - the BinaryPredicate to transposepublic final boolean test(L left, R right)
test in interface BinaryPredicate<L,R>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentspublic static <L,R> TransposedPredicate<R,L> transpose(BinaryPredicate<? super L,? super R> p)
p.L - the left argument type.R - the right argument type.p - BinaryPredicate to transposeCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.