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:
net.sf.staccatocommons.defs.Applicable<A,net.sf.staccatocommons.defs.predicate.Predicate<B>>, net.sf.staccatocommons.defs.Applicable2<A,B,Boolean>, net.sf.staccatocommons.defs.Evaluable2<A,B>, net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.predicate.Predicate2<A,B>>, net.sf.staccatocommons.defs.predicate.Predicate2<A,B>
Direct Known Subclasses:
AbstractPredicate2.NullSafePredicate2, AbstractPredicate2.Soft, RelevantState, TopLevelPredicate2

public abstract class AbstractPredicate2<A,B>
extends Object
implements net.sf.staccatocommons.defs.predicate.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
 net.sf.staccatocommons.defs.predicate.Predicate2<A,B> and(net.sf.staccatocommons.defs.Evaluable2<? super A,? super B> other)
           
 net.sf.staccatocommons.defs.predicate.Predicate<B> apply(A arg)
           
 Boolean apply(A arg0, B arg1)
           
 net.sf.staccatocommons.defs.predicate.Predicate2<A,B> not()
           
 net.sf.staccatocommons.defs.predicate.Predicate2<A,B> nullSafe()
           
 net.sf.staccatocommons.defs.predicate.Predicate2<A,B> or(net.sf.staccatocommons.defs.Evaluable2<? super A,? super B> other)
           
 net.sf.staccatocommons.defs.predicate.Predicate<net.sf.staccatocommons.defs.tuple.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 net.sf.staccatocommons.defs.Applicable2<A,B,Boolean>

apply

public net.sf.staccatocommons.defs.predicate.Predicate<B> apply(A arg)
Specified by:
apply in interface net.sf.staccatocommons.defs.Applicable<A,net.sf.staccatocommons.defs.predicate.Predicate<B>>

not

public net.sf.staccatocommons.defs.predicate.Predicate2<A,B> not()
Specified by:
not in interface net.sf.staccatocommons.defs.predicate.Predicate2<A,B>

or

public net.sf.staccatocommons.defs.predicate.Predicate2<A,B> or(@NonNull
                                                                net.sf.staccatocommons.defs.Evaluable2<? super A,? super B> other)
Specified by:
or in interface net.sf.staccatocommons.defs.predicate.Predicate2<A,B>

and

public net.sf.staccatocommons.defs.predicate.Predicate2<A,B> and(@NonNull
                                                                 net.sf.staccatocommons.defs.Evaluable2<? super A,? super B> other)
Specified by:
and in interface net.sf.staccatocommons.defs.predicate.Predicate2<A,B>

nullSafe

public net.sf.staccatocommons.defs.predicate.Predicate2<A,B> nullSafe()
Specified by:
nullSafe in interface net.sf.staccatocommons.defs.partial.NullSafeAware<net.sf.staccatocommons.defs.predicate.Predicate2<A,B>>
Specified by:
nullSafe in interface net.sf.staccatocommons.defs.predicate.Predicate2<A,B>

uncurry

public net.sf.staccatocommons.defs.predicate.Predicate<net.sf.staccatocommons.defs.tuple.Tuple2<A,B>> uncurry()
Specified by:
uncurry in interface net.sf.staccatocommons.defs.predicate.Predicate2<A,B>


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.