net.sf.jga.fn.logical
Class LogicalFunctors

java.lang.Object
  extended by net.sf.jga.fn.logical.LogicalFunctors

public final class LogicalFunctors
extends java.lang.Object

Static factory methods for the functors in the Logical package.

Copyright © 2006 David A. Hall

Author:
David A. Hall

Constructor Summary
LogicalFunctors()
           
 
Method Summary
static
<T> UnaryFunctor<T,java.lang.Boolean>
all()
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
all(java.util.Collection<UnaryFunctor<T,java.lang.Boolean>> branches)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
all(UnaryFunctor<T,java.lang.Boolean>... branches)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
any()
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
any(java.util.Collection<UnaryFunctor<T,java.lang.Boolean>> branches)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
any(UnaryFunctor<T,java.lang.Boolean>... branches)
           
static
<T1,T2> BinaryFunctor<T1,T2,java.lang.Boolean>
binaryNegate(BinaryFunctor<? super T1,? super T2,java.lang.Boolean> p)
           
static BinaryFunctor<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> logicalAnd()
           
static UnaryFunctor<java.lang.Boolean,java.lang.Boolean> logicalNot()
           
static BinaryFunctor<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> logicalOr()
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
unaryNegate(UnaryFunctor<? super T,java.lang.Boolean> p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalFunctors

public LogicalFunctors()
Method Detail

all

public static <T> UnaryFunctor<T,java.lang.Boolean> all()

all

public static <T> UnaryFunctor<T,java.lang.Boolean> all(java.util.Collection<UnaryFunctor<T,java.lang.Boolean>> branches)

all

public static <T> UnaryFunctor<T,java.lang.Boolean> all(UnaryFunctor<T,java.lang.Boolean>... branches)

any

public static <T> UnaryFunctor<T,java.lang.Boolean> any()

any

public static <T> UnaryFunctor<T,java.lang.Boolean> any(java.util.Collection<UnaryFunctor<T,java.lang.Boolean>> branches)

any

public static <T> UnaryFunctor<T,java.lang.Boolean> any(UnaryFunctor<T,java.lang.Boolean>... branches)

binaryNegate

public static <T1,T2> BinaryFunctor<T1,T2,java.lang.Boolean> binaryNegate(BinaryFunctor<? super T1,? super T2,java.lang.Boolean> p)

logicalAnd

public static BinaryFunctor<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> logicalAnd()

logicalOr

public static BinaryFunctor<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> logicalOr()

logicalNot

public static UnaryFunctor<java.lang.Boolean,java.lang.Boolean> logicalNot()

unaryNegate

public static <T> UnaryFunctor<T,java.lang.Boolean> unaryNegate(UnaryFunctor<? super T,java.lang.Boolean> p)


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