T
- The type of the property.public class IdentityProperty<T> extends java.lang.Object implements Property<T>
Property
which simple stores it's value as
a member variable, which can be updated and retrieved through get and set.Constructor and Description |
---|
IdentityProperty()
Create an IndentityProperty with null as the initial value.
|
IdentityProperty(T value)
Create an identity with the given initial value.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the current value of the property.
|
T |
set(T to)
Set the value of this property to the given value.
|
public IdentityProperty()
public IdentityProperty(T value)
value
- The initial value for this property.