@ParametersAreNonnullByDefault public interface ValueMapper
| Modifier and Type | Method and Description |
|---|---|
void |
removeValue(SingleFeatureBean feature)
Removes the value of the specified
feature. |
<V> Optional<V> |
valueFor(SingleFeatureBean feature,
V value)
Defines the
value of the specified feature. |
<V> Optional<V> |
valueOf(SingleFeatureBean feature)
Retrieves the value of the specified
feature. |
@Nonnull <V> Optional<V> valueOf(SingleFeatureBean feature)
feature.V - the type of valuefeature - the bean identifying the valueOptional containing the value, or Optional.empty() if the feature hasn't any value or
doesn't existNullPointerException - if any parameter is null@Nonnull <V> Optional<V> valueFor(SingleFeatureBean feature, V value)
value of the specified feature.V - the type of valuefeature - the bean identifying the valuevalue - the value to setOptional containing the previous value of the feature, or Optional.empty() if
the feature has no value beforeNullPointerException - if any parameter is nullvoid removeValue(SingleFeatureBean feature)
feature.feature - the bean identifying the valueNullPointerException - if any parameter is nullCopyright © 2013–2019 Atlanmod. All rights reserved.