public interface ValueWrapper
Modifier and Type | Interface and Description |
---|---|
static class |
ValueWrapper.Bool
A wrapper around a boolean value.
|
static class |
ValueWrapper.Float
A wrapper around a float value.
|
static class |
ValueWrapper.Int
A wrapper around an int value.
|
static class |
ValueWrapper.Obj
A wrapper around an object value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
Return the value as a boolean.
|
float |
getFloatValue()
Return the value as a float.
|
int |
getIntValue()
Return the value as an int.
|
java.lang.Object |
getValue()
Return the value.
|
void |
setBooleanValue(boolean value)
Set the value as a boolean.
|
void |
setFloatValue(float value)
Set the value as a float.
|
void |
setIntValue(int value)
Set the value as an int.
|
void |
setValue(java.lang.Object value)
Set the value.
|
java.lang.Object getValue()
int getIntValue()
float getFloatValue()
boolean getBooleanValue()
void setIntValue(int value)
value
- the value as an intvoid setFloatValue(float value)
value
- the value as a floatvoid setBooleanValue(boolean value)
value
- the value as a booleanvoid setValue(java.lang.Object value)
value
- the valueCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence