public interface PropertyValueSource
PropertySet
), used to retrieve property values.Modifier and Type | Method and Description |
---|---|
boolean |
contains(Property<?> prop) |
<T> T |
get(Property<T> prop)
Retrieves the value of the property, or null if this set doesn't contain that property.
|
<T> T |
getOrDefault(Property<T> prop) |
<T> T |
getOrElse(Property<T> prop,
T value)
Get the value for a given
Property , or else fall back to value if it's not present. |
boolean |
isExtended(Property<?> prop)
Returns whether this property set contains a value for the prop, and the prop was actually inherited.
|
boolean |
isInherited(Property<?> prop)
Indicates whether the property was inherited from a parent type.
|
<T> T get(Property<T> prop)
boolean contains(Property<?> prop)
prop
- <T> T getOrDefault(Property<T> prop)
prop
- Property.getDefaultValue()
if not present.<T> T getOrElse(Property<T> prop, T value)
Property
, or else fall back to value if it's not present.property
- The Property
for which a value is to be retrieved.value
- The value to default to if property isn't present.boolean isExtended(Property<?> prop)
prop
- boolean isInherited(Property<?> prop)
prop
-