|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.amino.alg.parallelprefix.DefaultAddBinaryOp<T>
T
- Non-primitive type of elements being manipulated.public abstract class DefaultAddBinaryOp<T>
Provide basic implementation for addition binary operation used in parallel prefix package. For primitive data types, the parameterized type is ignored. The user must extend this class to do something intelligent with the non-primitive type
ParallelPrefix
Constructor Summary | |
---|---|
DefaultAddBinaryOp()
|
Method Summary | |
---|---|
byte |
transform(byte a,
byte b)
Transform two bytes to one. |
char |
transform(char a,
char b)
Transform two bytes to one. |
double |
transform(double a,
double b)
Transform two bytes to one. |
float |
transform(float a,
float b)
Transform two bytes to one. |
int |
transform(int a,
int b)
Transform two bytes to one. |
long |
transform(long a,
long b)
Transform two bytes to one. |
short |
transform(short a,
short b)
Transform two bytes to one. |
T |
transform(T a,
T b)
Transform two bytes to one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAddBinaryOp()
Method Detail |
---|
public byte transform(byte a, byte b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public char transform(char a, char b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public short transform(short a, short b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public int transform(int a, int b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public long transform(long a, long b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public float transform(float a, float b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public double transform(double a, double b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
public T transform(T a, T b)
transform
in interface BinaryOp<T>
a
- op oneb
- op two
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |