-
Method Summary
default <T> T
Get a property of a given type.
void
void
default void
Set a property if the underlying property map supports mutation.
-
Method Details
-
-
-
-
-
setProperty
Set a property if the underlying property map supports mutation.
- Parameters:
key - the property key.
value - the property value.
- Throws:
UnsupportedOperationException - if the underlying property map doesnt support mutation.
-
getProperty
Get a property.
- Parameters:
key - the property key.
- Returns:
- the property value.
-
getPropertyOfType
default <T> T getPropertyOfType(Object key,
Class<T> type)
Get a property of a given type.
- Type Parameters:
T - the types type parameter.
- Parameters:
key - the property key.
type - the type.
- Returns:
- the property value if the type matches or null otherwise.