de.cm.frw.core.fun.impl
Class Pred

java.lang.Object
  extended by de.cm.frw.core.fun.impl.Pred
All Implemented Interfaces:
Predicate
Direct Known Subclasses:
Pred.BinPred, Pred.Combination, Pred.Not

public abstract class Pred
extends java.lang.Object
implements Predicate


Nested Class Summary
static class Pred.And
           
static class Pred.BinComp
           
static class Pred.BinPred
           
static class Pred.Combination
           
static class Pred.Not
           
static class Pred.Or
           
 
Constructor Summary
Pred()
           
 
Method Summary
static Predicate and(Predicate p1, Predicate p2)
           
static Predicate fromFunction(Function f)
           
static Predicate not(Predicate p)
           
static Predicate or(Predicate p1, Predicate p2)
           
abstract  boolean test(java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pred

public Pred()
Method Detail

test

public abstract boolean test(java.lang.Object arg)
                      throws Function.InvalidArguments
Specified by:
test in interface Predicate
Throws:
Function.InvalidArguments

fromFunction

public static Predicate fromFunction(Function f)

not

public static Predicate not(Predicate p)

and

public static Predicate and(Predicate p1,
                            Predicate p2)

or

public static Predicate or(Predicate p1,
                           Predicate p2)