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.
Property
s can define various immutable information about a
PropertyHolder
that is dependent on the instance of the holder.
As Property
s cannot be changed, the PropertyHolder
can
not change the information about it's own properties either.
T
- The type of propertypropertyClass
- The property classCollection<Property<?,?>> getApplicableProperties()
Property
s pertaining
to this PropertyHolder
.
Property
s can not be changed such that the property is
attached to the instance of the residing PropertyHolder
.
Property
s