T
- The type of values it returns.public static interface BmcPropertyAccessor.Accessor<T>
Modifier and Type | Method and Description |
---|---|
default <R> R |
forNonNull(BmcProperties property,
Function<T,R> fn)
If the value of the property, interpreted as type T, is non-null, apply the function to that value, and
return the result of the function.
|
T |
get(BmcProperties property)
Get the value of this property, interpreted as type T.
|
T get(BmcProperties property)
BmcProperties.getDefaultValue()
will be returned.property
- The BMC property.default <R> R forNonNull(BmcProperties property, Function<T,R> fn)
R
- return typeproperty
- The BMC propertyfn
- the function to apply to the non-null valueCopyright © 2016–2023. All rights reserved.