net.sf.staccatocommons.lang.predicate
Class AbstractPredicate2<A,B>
java.lang.Object
net.sf.staccatocommons.lang.predicate.AbstractPredicate2<A,B>
- Type Parameters:
A - the type of the first argumentB - the type of the second argument
- All Implemented Interfaces:
- Applicable<A,Predicate<B>>, Applicable2<A,B,Boolean>, Evaluable2<A,B>, NullSafeAware<Predicate2<A,B>>, Predicate2<A,B>
- Direct Known Subclasses:
- AbstractPredicate2.NullSafePredicate2, AbstractPredicate2.Soft, RelevantState
public abstract class AbstractPredicate2<A,B>
- extends Object
- implements Predicate2<A,B>
- Author:
- flbulgarelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.staccatocommons.defs.Evaluable2 |
eval |
AbstractPredicate2
public AbstractPredicate2()
apply
public final Boolean apply(A arg0,
B arg1)
- Specified by:
apply in interface Applicable2<A,B,Boolean>
apply
public Predicate<B> apply(A arg)
- Specified by:
apply in interface Applicable<A,Predicate<B>>
not
public Predicate2<A,B> not()
- Specified by:
not in interface Predicate2<A,B>
or
public Predicate2<A,B> or(@NonNull
Evaluable2<? super A,? super B> other)
- Specified by:
or in interface Predicate2<A,B>
and
public Predicate2<A,B> and(@NonNull
Evaluable2<? super A,? super B> other)
- Specified by:
and in interface Predicate2<A,B>
nullSafe
public Predicate2<A,B> nullSafe()
- Specified by:
nullSafe in interface NullSafeAware<Predicate2<A,B>>- Specified by:
nullSafe in interface Predicate2<A,B>
uncurry
public Predicate<Tuple2<A,B>> uncurry()
- Specified by:
uncurry in interface Predicate2<A,B>