public interface ValueHolder
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getCurrentValueAsString() |
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.
|
java.lang.String |
getValueAsString() |
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.
|
void |
setValueAsString(java.lang.String aValue)
This method shall assign the given value to the current value.
|
void reset()
void increase()
void decrease()
int getValueAsInt()
long getValueAsLong()
double getValueAsDouble()
java.lang.String getValueAsString()
int getCurrentValueAsInt()
long getCurrentValueAsLong()
double getCurrentValueAsDouble()
java.lang.String getCurrentValueAsString()
void setValueAsInt(int aValue)
aValue - the new valuevoid setValueAsString(java.lang.String 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 valueCopyright © 2010-2020 anotheria.net. All Rights Reserved.