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