public class SmartPropertyDouble
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SmartPropertyDouble.IPropertyChangeListener
Defines the interface for
SmartPropertyDouble listener |
Constructor and Description |
---|
SmartPropertyDouble(SmartPropertyDouble.IPropertyChangeListener listener)
Creates a new instance of
SmartPropertyDouble class |
SmartPropertyDouble(SmartPropertyDouble.IPropertyChangeListener listener,
double defaultValue)
Creates a new instance of
SmartPropertyDouble class |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getValue()
Gets the current property value
|
int |
hashCode() |
void |
setStrongValue(double newValue)
Sets weak value for this property which overrides any previously set value
|
void |
setWeakValue(double newValue)
Sets weak value for this property if it was not overridden by
SmartProperty.setStrongValue(Object) call |
java.lang.String |
toString() |
public SmartPropertyDouble(@NonNull SmartPropertyDouble.IPropertyChangeListener listener, double defaultValue)
SmartPropertyDouble
classlistener
- The listener change listener for this propertydefaultValue
- The default value for propertypublic SmartPropertyDouble(@NonNull SmartPropertyDouble.IPropertyChangeListener listener)
SmartPropertyDouble
classlistener
- The listener change listener for this propertypublic void setWeakValue(double newValue)
SmartProperty.setStrongValue(Object)
callnewValue
- The new value for propertypublic void setStrongValue(double newValue)
newValue
- The new value for propertypublic double getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object