public abstract class IntPropertyWrapperBase<T extends IIntProperty> extends java.lang.Object implements IIntProperty, IDoubleProperty, IFloatProperty, IStringProperty
IIntProperty.WithStateIDoubleProperty.WithStateIFloatProperty.WithStateIStringProperty.WithState| Modifier and Type | Field and Description |
|---|---|
protected T |
delegateFor |
protected java.text.NumberFormat |
numberFormat |
| Constructor and Description |
|---|
IntPropertyWrapperBase(T delegateFor,
java.text.NumberFormat numberFormat) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDouble()
Get the double value.
|
float |
getFloat()
Get the float value.
|
int |
getInt()
Get the int value.
|
java.lang.String |
getString()
Get the string value.
|
boolean |
isValidDouble(double value)
Returns true if the double value is valid.
|
boolean |
isValidFloat(float value)
Returns true if the float value is valid.
|
boolean |
isValidInt(int value)
Returns true if the int value is valid.
|
boolean |
isValidString(java.lang.String value)
Returns true if the string value is valid.
|
void |
setDouble(double value)
Set the double value, regardless of it being a valid value or not.
|
void |
setFloat(float value)
Set the float value, regardless of it being a valid value or not.
|
void |
setInt(int value)
Set the int value, regardless of it being a valid value or not.
|
void |
setString(java.lang.String value)
Set the string value, regardless of it being a valid value or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrySetInttrySetDoubletrySetFloattrySetStringprotected final T extends IIntProperty delegateFor
protected final java.text.NumberFormat numberFormat
public IntPropertyWrapperBase(T delegateFor, java.text.NumberFormat numberFormat)
public int getInt()
IIntPropertygetInt in interface IIntPropertypublic void setInt(int value)
IIntPropertysetInt in interface IIntPropertyvalue - the int valuepublic boolean isValidInt(int value)
IIntPropertyisValidInt in interface IIntPropertyvalue - the int valuepublic double getDouble()
IDoublePropertygetDouble in interface IDoublePropertypublic void setDouble(double value)
IDoublePropertysetDouble in interface IDoublePropertyvalue - the double valuepublic boolean isValidDouble(double value)
IDoublePropertyisValidDouble in interface IDoublePropertyvalue - the double valuepublic float getFloat()
IFloatPropertygetFloat in interface IFloatPropertypublic void setFloat(float value)
IFloatPropertysetFloat in interface IFloatPropertyvalue - the float valuepublic boolean isValidFloat(float value)
IFloatPropertyisValidFloat in interface IFloatPropertyvalue - the float valuepublic java.lang.String getString()
IStringPropertygetString in interface IStringPropertypublic void setString(java.lang.String value)
IStringPropertysetString in interface IStringPropertyvalue - the string valuepublic boolean isValidString(java.lang.String value)
IStringPropertyisValidString in interface IStringPropertyvalue - the string value