public abstract class DoublePropertyWrapperBase<T extends IDoubleProperty> extends java.lang.Object implements IDoubleProperty, IFloatProperty, IIntProperty, IStringProperty
IDoubleProperty.WithStateIFloatProperty.WithStateIIntProperty.WithStateIStringProperty.WithState| Modifier and Type | Field and Description |
|---|---|
protected java.text.DecimalFormat |
decimalFormat |
protected T |
delegateFor |
| Constructor and Description |
|---|
DoublePropertyWrapperBase(T delegateFor,
java.text.DecimalFormat decimalFormat) |
| 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, waittrySetDoubletrySetFloattrySetInttrySetStringprotected final T extends IDoubleProperty delegateFor
protected final java.text.DecimalFormat decimalFormat
public DoublePropertyWrapperBase(T delegateFor, java.text.DecimalFormat decimalFormat)
public 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 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 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