@ParametersAreNonnullByDefault public interface ManyValueMapper extends ValueMapper
| Modifier and Type | Method and Description |
|---|---|
<V> void |
addAllValues(ManyFeatureBean feature,
List<? extends V> collection)
Adds all the
collection to the specified feature from the position of the feature. |
<V> void |
addValue(ManyFeatureBean feature,
V value)
Adds the
value to the specified feature at a defined position. |
<V> Stream<V> |
allValuesOf(SingleFeatureBean feature)
Retrieves all values of the specified
feature. |
default <V> int |
appendAllValues(SingleFeatureBean feature,
List<? extends V> collection)
Adds all the
collection to the specified feature from the last position. |
default <V> int |
appendValue(SingleFeatureBean feature,
V value)
Adds the
value to the specified feature at the last position. |
void |
removeAllValues(SingleFeatureBean feature)
Removes all values of the specified
feature. |
<V> Optional<V> |
removeValue(ManyFeatureBean feature)
Removes the value of the specified
feature at a defined position. |
Optional<Integer> |
sizeOfValue(SingleFeatureBean feature)
Returns the number of value of the specified
feature. |
<V> Optional<V> |
valueFor(ManyFeatureBean feature,
V value)
Defines the
value of the specified feature at a defined position. |
<V> Optional<V> |
valueOf(ManyFeatureBean feature)
Retrieves the value of the specified
feature at a defined position. |
removeValue, valueFor, valueOf@Nonnull <V> Optional<V> valueOf(ManyFeatureBean feature)
feature at a defined position.feature - the bean identifying the multi-valued attributeOptional containing the value, or Optional.empty() if the feature hasn't any value or
doesn't existNullPointerException - if the feature is null@Nonnull <V> Stream<V> allValuesOf(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued attributeStream over all valuesNullPointerException - if the feature is null@Nonnull <V> Optional<V> valueFor(ManyFeatureBean feature, V value)
value of the specified feature at a defined position.V - the type of valuefeature - the bean identifying the multi-valued attributevalue - 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 nullIndexOutOfBoundsException - if index.position < 0 || index.position >= sizeaddValue(ManyFeatureBean, Object),
appendValue(SingleFeatureBean, Object)<V> void addValue(ManyFeatureBean feature, V value)
value to the specified feature at a defined position.V - the type of valuefeature - the bean identifying the multi-valued attributevalue - the value to addNullPointerException - if any parameter is nullIndexOutOfBoundsException - if feature.position > size<V> void addAllValues(ManyFeatureBean feature, List<? extends V> collection)
collection to the specified feature from the position of the feature.V - the type of valuefeature - the bean identifying the multi-valued attributecollection - the values to addNullPointerException - if any parameter is nullIndexOutOfBoundsException - if feature.position > size@Nonnegative default <V> int appendValue(SingleFeatureBean feature, V value)
value to the specified feature at the last position.V - the type of valuefeature - the bean identifying the multi-valued attributevalue - the value to addNullPointerException - if any parameter is nulladdValue(ManyFeatureBean, Object)@Nonnegative default <V> int appendAllValues(SingleFeatureBean feature, List<? extends V> collection)
collection to the specified feature from the last position.V - the type of valuesfeature - the bean identifying the multi-valued attributecollection - the values to addNullPointerException - if any parameter is nulladdValue(ManyFeatureBean, Object),
appendValue(SingleFeatureBean, Object)@Nonnull <V> Optional<V> removeValue(ManyFeatureBean feature)
feature at a defined position.V - the type of valuefeature - the bean identifying the multi-valued attributeOptional containing the removed value, or Optional.empty() if the feature has no value
beforeNullPointerException - if the feature is nullvoid removeAllValues(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued attributeNullPointerException - if the feature is null@Nonnull @Nonnegative Optional<Integer> sizeOfValue(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued attributeOptional containing the number of value of the feature, or Optional.empty() if
the feature hasn't any value, or if size == 0.NullPointerException - if the feature is nullCopyright © 2013–2019 Atlanmod. All rights reserved.