public class MeasureDefinition.MeasureValue extends Object implements JRCalculable
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE| Constructor and Description |
|---|
MeasureValue()
Initializes the value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(MeasureDefinition.MeasureValue measureValue)
Accumulates another measure value.
|
void |
addValue(Object addValue)
Accumulates a value.
|
JRCalculable |
getHelperVariable(byte helperType)
Returns a helper variable.
|
Object |
getIncrementedValue()
Returns the incremented value of the calculable object.
|
Object |
getValue()
Returns the value of the calculable object.
|
protected void |
init() |
boolean |
isInitialized()
Returns
true if and only if the calculable object was only initialized and not incremented. |
MeasureDefinition.MeasureValue |
setHelper(MeasureDefinition.MeasureValue helperVariable,
byte type)
Sets a helper variable.
|
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object.
|
String |
toString() |
protected void init()
public void addValue(Object addValue) throws JRException
addValue - the valueJRExceptionpublic void addValue(MeasureDefinition.MeasureValue measureValue) throws JRException
This is used for total calculations, when two accumulated values are combined into a total.
measureValue - the measure valueJRExceptionpublic Object getValue()
JRCalculablegetValue in interface JRCalculablepublic MeasureDefinition.MeasureValue setHelper(MeasureDefinition.MeasureValue helperVariable, byte type)
helperVariable - the helper variabletype - the helper typepublic boolean isInitialized()
JRCalculabletrue if and only if the calculable object was only initialized and not incremented.isInitialized in interface JRCalculabletrue if and only if the calculable object was only initialized and not incrementedpublic Object getIncrementedValue()
JRCalculablegetIncrementedValue in interface JRCalculablepublic JRCalculable getHelperVariable(byte helperType)
JRCalculablegetHelperVariable in interface JRCalculablehelperType - the desired helper variable typepublic void setInitialized(boolean isInitialized)
JRCalculablesetInitialized in interface JRCalculableisInitialized - the initialized flagJRCalculable.isInitialized()Copyright © 2017. All rights reserved.