| net.sf.jga.fn.arithmetic.ShiftRight
ShiftRight | public class ShiftRight extends BinaryFunctor (Code) | | Returns the first argument shifted right by the number of places given in the
second argument.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | ShiftRight(Class<T> c) Builds ShiftRight functor for the given class. |
serialVersionUID | final static long serialVersionUID(Code) | | |
ShiftRight | public ShiftRight(Class<T> c)(Code) | | Builds ShiftRight functor for the given class. The class argument must
be the same as the generic class argument (when generics are in use)
or else a ClassCastException will be thrown when the functor is used.
throws: IllegalArgumentException - if the given class has no Arithmeticimplementation registered with the ArithmeticFactory |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(ShiftRight) method, if it implements
the nested Visitor interface.
|
fn | public T fn(T x, Integer y)(Code) | | Given integral arguments x and y, returns x >> y
returns x >> y |
getType | public Class<T> getType()(Code) | | Returns the type of operands this instance supports
|
|
|