net.sf.jga.fn
Class UnaryPredicate<T>

java.lang.Object
  extended by net.sf.jga.fn.UnaryFunctor<T,java.lang.Boolean>
      extended by net.sf.jga.fn.UnaryPredicate<T>
All Implemented Interfaces:
java.io.Serializable, Visitable
Direct Known Subclasses:
All, AndUnary, Any, Between, CompareProperty, InstanceOf, LogicalNot, Match, OrUnary, UnaryNegate

public abstract class UnaryPredicate<T>
extends UnaryFunctor<T,java.lang.Boolean>

A Predicate that takes one argument and returns a boolean result. The argument is of type T.

Copyright © 2002 David A. Hall

Author:
David A. Hall
See Also:
Serialized Form

Constructor Summary
UnaryPredicate()
           
 
Method Summary
 boolean p(T arg)
          Evaluates the predicate and returns true or false.
 
Methods inherited from class net.sf.jga.fn.UnaryFunctor
accept, bind, compose, compose, fn, generate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnaryPredicate

public UnaryPredicate()
Method Detail

p

public boolean p(T arg)
Evaluates the predicate and returns true or false.



Copyright © 2002-2005 David A. Hall. All Rights Reserved.