|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.fn.Functor<R> net.sf.jga.fn.BinaryFunctor<T,java.lang.Integer,T> net.sf.jga.fn.arithmetic.ShiftLeft<T>
public class ShiftLeft<T extends java.lang.Number>
Returns the first argument shifted left by the number of places given in the second argument.
Copyright © 2003-2005 David A. Hall
Nested Class Summary | |
---|---|
static interface |
ShiftLeft.Visitor
Interface for classes that may interpret a ShiftLeft functor. |
Constructor Summary | |
---|---|
ShiftLeft(java.lang.Class<T> c)
Builds ShiftLeft functor for the given class. |
Method Summary | |
---|---|
void |
accept(Visitor v)
Calls the Visitor's visit(ShiftLeft) method, if it implements
the nested Visitor interface. |
T |
fn(T x,
java.lang.Integer y)
Given integral arguments x and y, returns x << y |
java.lang.Class<T> |
getType()
Returns the type of operands this instance supports |
java.lang.String |
toString()
|
Methods inherited from class net.sf.jga.fn.BinaryFunctor |
---|
bind, bind0th, bind1st, bind2nd, bindNth, compose, compose, composeNth, distribute, eval, generate, generate1st, generate2nd, generateNth |
Methods inherited from class net.sf.jga.fn.Functor |
---|
composeNth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShiftLeft(java.lang.Class<T> c)
java.lang.IllegalArgumentException
- if the given class has no Arithmetic
implementation registered with the ArithmeticFactoryMethod Detail |
---|
public java.lang.Class<T> getType()
public T fn(T x, java.lang.Integer y)
fn
in class BinaryFunctor<T extends java.lang.Number,java.lang.Integer,T extends java.lang.Number>
public void accept(Visitor v)
visit(ShiftLeft)
method, if it implements
the nested Visitor interface.
accept
in interface Visitable
accept
in class Functor<T extends java.lang.Number>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |