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