net.sf.jga.fn.arithmetic
Class ArithmeticFunctors

java.lang.Object
  extended by net.sf.jga.fn.arithmetic.ArithmeticFunctors

public final class ArithmeticFunctors
extends java.lang.Object

Static factory methods for the functors in the Comparison package.

Copyright © 2006 David A. Hall


Constructor Summary
ArithmeticFunctors()
           
 
Method Summary
static
<T extends java.lang.Number>
UnaryFunctor<java.util.Iterator<T>,T>
average(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
bitwiseAnd(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
bitwiseAnd(T value)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
bitwiseNot(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
bitwiseOr(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
bitwiseOr(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
bitwiseXor(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
bitwiseXor(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
divides(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
divides(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
minus(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
minus(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
modulus(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
modulus(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
multiplies(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
multiplies(T value)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
negate(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,T,T>
plus(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
UnaryFunctor<T,T>
plus(T value)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,java.lang.Integer,T>
shiftLeft(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,java.lang.Integer,T>
shiftRight(java.lang.Class<T> t)
           
static
<T extends java.lang.Number>
BinaryFunctor<T,java.lang.Integer,T>
unsignedShiftRight(java.lang.Class<T> t)
           
static
<T extends java.lang.Number,R extends java.lang.Number>
UnaryFunctor<T,R>
valueOf(java.lang.Class<R> r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArithmeticFunctors

public ArithmeticFunctors()
Method Detail

average

public static <T extends java.lang.Number> UnaryFunctor<java.util.Iterator<T>,T> average(java.lang.Class<T> t)

bitwiseAnd

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> bitwiseAnd(java.lang.Class<T> t)

bitwiseAnd

public static <T extends java.lang.Number> UnaryFunctor<T,T> bitwiseAnd(T value)

bitwiseNot

public static <T extends java.lang.Number> UnaryFunctor<T,T> bitwiseNot(java.lang.Class<T> t)

bitwiseOr

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> bitwiseOr(java.lang.Class<T> t)

bitwiseOr

public static <T extends java.lang.Number> UnaryFunctor<T,T> bitwiseOr(T value)

bitwiseXor

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> bitwiseXor(java.lang.Class<T> t)

bitwiseXor

public static <T extends java.lang.Number> UnaryFunctor<T,T> bitwiseXor(T value)

divides

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> divides(java.lang.Class<T> t)

divides

public static <T extends java.lang.Number> UnaryFunctor<T,T> divides(T value)

minus

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> minus(java.lang.Class<T> t)

minus

public static <T extends java.lang.Number> UnaryFunctor<T,T> minus(T value)

modulus

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> modulus(java.lang.Class<T> t)

modulus

public static <T extends java.lang.Number> UnaryFunctor<T,T> modulus(T value)

multiplies

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> multiplies(java.lang.Class<T> t)

multiplies

public static <T extends java.lang.Number> UnaryFunctor<T,T> multiplies(T value)

negate

public static <T extends java.lang.Number> UnaryFunctor<T,T> negate(java.lang.Class<T> t)

plus

public static <T extends java.lang.Number> BinaryFunctor<T,T,T> plus(java.lang.Class<T> t)

plus

public static <T extends java.lang.Number> UnaryFunctor<T,T> plus(T value)

shiftLeft

public static <T extends java.lang.Number> BinaryFunctor<T,java.lang.Integer,T> shiftLeft(java.lang.Class<T> t)

shiftRight

public static <T extends java.lang.Number> BinaryFunctor<T,java.lang.Integer,T> shiftRight(java.lang.Class<T> t)

unsignedShiftRight

public static <T extends java.lang.Number> BinaryFunctor<T,java.lang.Integer,T> unsignedShiftRight(java.lang.Class<T> t)

valueOf

public static <T extends java.lang.Number,R extends java.lang.Number> UnaryFunctor<T,R> valueOf(java.lang.Class<R> r)


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