|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ValueHolder
This interface desclares any type-specific holder implementation and declares the interface to support some basic mathematical operations needed for statistical aggregations.
| Method Summary | |
|---|---|
void |
decrease()
This method shall decrement the value by one. |
void |
decreaseByDouble(double aValue)
This method shall decrement the current value by the given amount. |
void |
decreaseByInt(int aValue)
This method shall decrement the current value by the given amount. |
void |
decreaseByLong(long aValue)
This method shall decrement the current value by the given amount. |
double |
getCurrentValueAsDouble()
This method shall return the current value as double for internal use only. |
int |
getCurrentValueAsInt()
This method shall return the current value as int for internal use only. |
long |
getCurrentValueAsLong()
This method shall return the current value as long for internal use only. |
double |
getValueAsDouble()
This method shall return the current value as double. |
int |
getValueAsInt()
This method shall return the current value as int. |
long |
getValueAsLong()
This method shall return the current value as long. |
void |
increase()
This method shall increment the value by one. |
void |
increaseByDouble(double aValue)
This method shall increment the current value by the given amount. |
void |
increaseByInt(int aValue)
This method shall increment the current value by the given amount. |
void |
increaseByLong(long aValue)
This method shall increment the current value by the given amount. |
void |
reset()
This method shall reset the ValueHolder. |
void |
setDefaultValueAsDouble(double aValue)
This method shall set a new default value. |
void |
setDefaultValueAsInt(int aValue)
This method shall set a new default value. |
void |
setDefaultValueAsLong(long aValue)
This method shall set a new default value. |
void |
setValueAsDouble(double aValue)
This method shall assign the given value to the current value. |
void |
setValueAsInt(int aValue)
This method shall assign the given value to the current value. |
void |
setValueAsLong(long aValue)
This method shall assign the given value to the current value. |
| Method Detail |
|---|
void reset()
void increase()
void decrease()
int getValueAsInt()
long getValueAsLong()
double getValueAsDouble()
int getCurrentValueAsInt()
long getCurrentValueAsLong()
double getCurrentValueAsDouble()
void setValueAsInt(int aValue)
aValue - the new valuevoid setValueAsLong(long aValue)
aValue - the new valuevoid setValueAsDouble(double aValue)
aValue - the new valuevoid increaseByInt(int aValue)
aValue - the amountvoid increaseByLong(long aValue)
aValue - the amountvoid increaseByDouble(double aValue)
aValue - the amountvoid decreaseByInt(int aValue)
aValue - the amountvoid decreaseByLong(long aValue)
aValue - the amountvoid decreaseByDouble(double aValue)
aValue - the amountvoid setDefaultValueAsInt(int aValue)
aValue - the new default valuevoid setDefaultValueAsLong(long aValue)
aValue - the new default valuevoid setDefaultValueAsDouble(double aValue)
aValue - the new default value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||