Class AnyNumberSequence
java.lang.Object
org.pentaho.reporting.libraries.formula.typing.sequence.AnySequence
org.pentaho.reporting.libraries.formula.typing.sequence.AnyNumberSequence
- All Implemented Interfaces:
NumberSequence
,Sequence
A sequence that treats text-values as valid numbers that always evaluate to zero. Logical values
are treated as numbers as well and always evaluate to 0 for false and 1 for true.
- Author:
- Cedric Pronzato
-
Constructor Summary
ConstructorsConstructorDescriptionAnyNumberSequence
(FormulaContext context) Empty number sequence.AnyNumberSequence
(LValue n, FormulaContext context) Number sequence bounded to only one number item.AnyNumberSequence
(ArrayCallback array, FormulaContext context) Number sequence bounded to an array.AnyNumberSequence
(AnySequence anySequence) -
Method Summary
Methods inherited from class org.pentaho.reporting.libraries.formula.typing.sequence.AnySequence
hasNext, next, nextRawValue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.reporting.libraries.formula.typing.Sequence
hasNext, next, nextRawValue
-
Constructor Details
-
AnyNumberSequence
Empty number sequence. -
AnyNumberSequence
Number sequence bounded to only one number item.- Parameters:
n
- A number
-
AnyNumberSequence
Number sequence bounded to an array.- Parameters:
array
-
-
AnyNumberSequence
-
-
Method Details
-
nextNumber
- Specified by:
nextNumber
in interfaceNumberSequence
- Throws:
EvaluationException
-