net.sf.staccatocommons.lang.predicate
Class AbstractPredicate2<A,B>

java.lang.Object
  extended by net.sf.staccatocommons.lang.predicate.AbstractPredicate2<A,B>
Type Parameters:
A - the type of the first argument
B - 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

Nested Class Summary
protected  class AbstractPredicate2.NullSafePredicate2
           
static class AbstractPredicate2.Soft<A,B>
          AbstractPredicate2 that handles exceptions by softening them using SoftException.soften(Throwable)
 
Constructor Summary
AbstractPredicate2()
           
 
Method Summary
 Predicate2<A,B> and(Evaluable2<? super A,? super B> other)
           
 Predicate<B> apply(A arg)
           
 Boolean apply(A arg0, B arg1)
           
 Predicate2<A,B> not()
           
 Predicate2<A,B> nullSafe()
           
 Predicate2<A,B> or(Evaluable2<? super A,? super B> other)
           
 Predicate<Tuple2<A,B>> uncurry()
           
 
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
 

Constructor Detail

AbstractPredicate2

public AbstractPredicate2()
Method Detail

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>


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads