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