|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.staccatocommons.lang.predicate.AbstractPredicate<A>
A - the type of argument to evaluatepublic abstract class AbstractPredicate<A>
A AbstractPredicate is an abstract Evaluable.
Predicates in addition understand the basic boolean logic messages
not(), and(Evaluable) and or(Evaluable) that
perform those operations on evaluation result.
| Constructor Summary | |
|---|---|
AbstractPredicate()
|
|
| Method Summary | ||
|---|---|---|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
and(net.sf.staccatocommons.defs.Evaluable<? super A> other)
Returns a predicate that performs a short-circuit logical-and between this AbstractPredicate's eval(Object) and other |
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
andNotNull()
|
|
Boolean |
apply(A arg)
|
|
abstract boolean |
eval(A argument)
|
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
not()
|
|
|
of(net.sf.staccatocommons.defs.Applicable<? super B,? extends A> other)
|
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
or(net.sf.staccatocommons.defs.Evaluable<? super A> other)
Returns a predicate that, performs a short-circuit logical-or between this AbstractPredicate's eval(Object) and other |
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
orNull()
|
|
String |
toString()
|
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
withEffectOnFalse(net.sf.staccatocommons.defs.Executable<A> executable)
|
|
net.sf.staccatocommons.defs.predicate.Predicate<A> |
withEffectOnTrue(net.sf.staccatocommons.defs.Executable<A> executable)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPredicate()
| Method Detail |
|---|
public abstract boolean eval(@NonNull
A argument)
eval in interface net.sf.staccatocommons.defs.Evaluable<A>public Boolean apply(A arg)
apply in interface net.sf.staccatocommons.defs.Applicable<A,Boolean>public net.sf.staccatocommons.defs.predicate.Predicate<A> not()
not in interface net.sf.staccatocommons.defs.predicate.Predicate<A>AbstractPredicate that negates this
AbstractPredicate's result. Non Null.
public net.sf.staccatocommons.defs.predicate.Predicate<A> or(@NonNull
net.sf.staccatocommons.defs.Evaluable<? super A> other)
AbstractPredicate's eval(Object) and other
or in interface net.sf.staccatocommons.defs.predicate.Predicate<A>other - another Evaluable. Non null.
public net.sf.staccatocommons.defs.predicate.Predicate<A> and(@NonNull
net.sf.staccatocommons.defs.Evaluable<? super A> other)
AbstractPredicate's eval(Object) and other
and in interface net.sf.staccatocommons.defs.predicate.Predicate<A>other - another Evaluable. Non null.
public final net.sf.staccatocommons.defs.predicate.Predicate<A> andNotNull()
andNotNull in interface net.sf.staccatocommons.defs.predicate.Predicate<A>public final net.sf.staccatocommons.defs.predicate.Predicate<A> orNull()
orNull in interface net.sf.staccatocommons.defs.predicate.Predicate<A>
public <B> net.sf.staccatocommons.defs.predicate.Predicate<B> of(@NonNull
net.sf.staccatocommons.defs.Applicable<? super B,? extends A> other)
of in interface net.sf.staccatocommons.defs.predicate.Predicate<A>public net.sf.staccatocommons.defs.predicate.Predicate<A> withEffectOnFalse(net.sf.staccatocommons.defs.Executable<A> executable)
withEffectOnFalse in interface net.sf.staccatocommons.defs.predicate.Predicate<A>public net.sf.staccatocommons.defs.predicate.Predicate<A> withEffectOnTrue(net.sf.staccatocommons.defs.Executable<A> executable)
withEffectOnTrue in interface net.sf.staccatocommons.defs.predicate.Predicate<A>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||