net.sf.jga.fn.adaptor
Class Conditional<T,R>

java.lang.Object
  extended by net.sf.jga.fn.UnaryFunctor<T,R>
      extended by net.sf.jga.fn.adaptor.ConditionalUnary<T,R>
          extended by net.sf.jga.fn.adaptor.Conditional<T,R>
All Implemented Interfaces:
java.io.Serializable, Visitable

Deprecated. renamed to ConditionalUnary

public class Conditional<T,R>
extends ConditionalUnary<T,R>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jga.fn.adaptor.ConditionalUnary
ConditionalUnary.Visitor
 
Constructor Summary
Conditional(UnaryFunctor<T,java.lang.Boolean> test, UnaryFunctor<T,R> trueFn, UnaryFunctor<T,R> falseFn)
          Deprecated. Builds a Conditional functor, given the condition to test, and the two functors that may be executed.
 
Method Summary
 
Methods inherited from class net.sf.jga.fn.adaptor.ConditionalUnary
accept, fn, getCondition, getFalseFunctor, getTrueFunctor, toString
 
Methods inherited from class net.sf.jga.fn.UnaryFunctor
bind, compose, compose, generate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Conditional

public Conditional(UnaryFunctor<T,java.lang.Boolean> test,
                   UnaryFunctor<T,R> trueFn,
                   UnaryFunctor<T,R> falseFn)
Deprecated. 
Builds a Conditional functor, given the condition to test, and the two functors that may be executed.

Throws:
java.lang.IllegalArgumentException - if any of the functors is missing


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