Class SmartProperty<T>
Defines a smart property class which can hold Object instances
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class SmartProperty<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
SmartProperty()
Creates a new instance of SmartProperty class
Declaration
public SmartProperty()
SmartProperty(T defaultValue)
Creates a new instance of SmartProperty class
Declaration
public SmartProperty(T defaultValue)
Parameters
Type | Name | Description |
---|---|---|
T | defaultValue | The default value for property |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
getValue()
Gets the current property value
Declaration
public final T getValue()
Returns
Type | Description |
---|---|
T | The current value of this property |
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
onPropertyChanged(T oldValue, T newValue)
Called when property value is changed
Declaration
protected void onPropertyChanged(T oldValue, T newValue)
Parameters
Type | Name | Description |
---|---|---|
T | oldValue | The old value |
T | newValue | The new value |
setStrongValue(T newValue)
Sets weak value for this property which overrides any previously set value
Declaration
public final void setStrongValue(T newValue)
Parameters
Type | Name | Description |
---|---|---|
T | newValue | The new value for property |
setWeakValue(T newValue)
Sets weak value for this property if it was not overridden by SmartProperty#setStrongValue(Object) call
Declaration
public final void setWeakValue(T newValue)
Parameters
Type | Name | Description |
---|---|---|
T | newValue | The new value for property |
toString()
Declaration
public String toString()
Returns
Type | Description |
---|---|
String |