T
- Parameterized type of the Propertypublic interface Property<T>
It creates a first-class object for the property from which you can get and set the value, and access any metadata about it.
The type of the Property can be one of the following:
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the value of the property.
|
void |
set(T newValue)
Set the value of the property
|
T get()
void set(T newValue) throws IllegalArgumentException, IllegalStateException
newValue
- the new valueIllegalArgumentException
- if the value has an invalid valueIllegalStateException
- if the property is immutable