public static class ValueWrapper.Obj extends java.lang.Object implements ValueWrapper
ValueWrapper.Bool, ValueWrapper.Float, ValueWrapper.Int, ValueWrapper.Obj
Constructor and Description |
---|
Obj(java.lang.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.
|
public java.lang.Object getValue()
ValueWrapper
getValue
in interface ValueWrapper
public int getIntValue()
ValueWrapper
getIntValue
in interface ValueWrapper
public float getFloatValue()
ValueWrapper
getFloatValue
in interface ValueWrapper
public boolean getBooleanValue()
ValueWrapper
getBooleanValue
in interface ValueWrapper
public void setIntValue(int value)
ValueWrapper
setIntValue
in interface ValueWrapper
value
- the value as an intpublic void setFloatValue(float value)
ValueWrapper
setFloatValue
in interface ValueWrapper
value
- the value as a floatpublic void setBooleanValue(boolean value)
ValueWrapper
setBooleanValue
in interface ValueWrapper
value
- the value as a booleanpublic void setValue(java.lang.Object value)
ValueWrapper
setValue
in interface ValueWrapper
value
- the valueCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence