public interface PropertyHolder
Modifier and Type | Method and Description |
---|---|
Collection<Property<?,?>> |
getApplicableProperties()
Gets an immutable collection of all known
Property s pertaining
to this PropertyHolder . |
<T extends Property<?,?>> |
getProperty(Class<T> propertyClass)
Attempts to retrieve a specific
Property type of this
PropertyHolder . |
<T extends Property<?,?>> Optional<T> getProperty(Class<T> propertyClass)
Property
type of this
PropertyHolder
. If the property is not applicable,
Optional.empty()
is returned.
properties
can define various immutable information
about a PropertyHolder
that is dependent on the instance of the
holder. As properties
cannot be changed, the
PropertyHolder
can not change the information about its own
properties either.
T
- The type of propertypropertyClass
- The property classCollection<Property<?,?>> getApplicableProperties()
Property
s pertaining
to this PropertyHolder
.
properties
can not be changed such that the property
is attached to the instance of the residing PropertyHolder
.
properties