|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.norther.tammi.acorn.lang.Equation
org.norther.tammi.acorn.lang.Sum
public class Sum
A sum equation.
| Constructor Summary | |
|---|---|
Sum(byte[] operands)
Constructs a new byte equation. |
|
Sum(double[] operands)
Constructs a new double equation. |
|
Sum(double[] operands,
boolean ignoreNaNs)
Constructs a new double equation. |
|
Sum(float[] operands)
Constructs a new float equation. |
|
Sum(float[] operands,
boolean ignoreNaNs)
Constructs a new float equation. |
|
Sum(int[] operands)
Constructs a new int equation. |
|
Sum(long[] operands)
Constructs a new long equation. |
|
Sum(short[] operands)
Constructs a new short equation. |
|
| Method Summary | |
|---|---|
protected Number |
calculate(Object operands,
int length,
boolean ignoreNaNs)
Calculates the result. |
| Methods inherited from class org.norther.tammi.acorn.lang.Equation |
|---|
byteValue, byteValue, compareTo, doubleValue, doubleValue, equals, floatValue, floatValue, getLength, getOperandType, getResult, intValue, intValue, isFloatingPoint, longValue, longValue, shortValue, shortValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sum(byte[] operands)
operands - the operands.public Sum(short[] operands)
operands - the operands.public Sum(int[] operands)
operands - the operands.public Sum(long[] operands)
operands - the operands.public Sum(float[] operands)
operands - the operands.
public Sum(float[] operands,
boolean ignoreNaNs)
operands - the operands.ignoreNaNs - ignore NaNs if true.public Sum(double[] operands)
operands - the operands.
public Sum(double[] operands,
boolean ignoreNaNs)
operands - the operands.ignoreNaNs - ignore NaNs if true.| Method Detail |
|---|
protected Number calculate(Object operands,
int length,
boolean ignoreNaNs)
Equation
calculate in class Equationoperands - an array of operands.length - the number of operands.ignoreNaNs - ignore NaNs if true.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||