M - the type of the reference after mapping@ParametersAreNonnullByDefault public interface ReferenceAs<M> extends ValueMapper, ReferenceMapper
| Modifier and Type | Method and Description |
|---|---|
Converter<Id,M> |
referenceConverter()
Returns the converter used to transform a reference to the desired type.
|
default Optional<Id> |
referenceFor(SingleFeatureBean feature,
Id reference)
Defines the reference of the specified
feature. |
default Optional<Id> |
referenceOf(SingleFeatureBean feature)
Retrieves the reference of the specified
feature. |
default void |
removeReference(SingleFeatureBean feature)
Removes the reference of the specified
feature. |
removeValue, valueFor, valueOf@Nonnull default Optional<Id> referenceOf(SingleFeatureBean feature)
ReferenceMapperfeature.referenceOf in interface ReferenceMapperfeature - the bean identifying the referenceOptional containing the reference, or Optional.empty() if the feature hasn't any
reference or doesn't exist@Nonnull default Optional<Id> referenceFor(SingleFeatureBean feature, Id reference)
ReferenceMapperfeature.referenceFor in interface ReferenceMapperfeature - the bean identifying the referencereference - the reference to setOptional containing the previous reference of the feature, or Optional.empty()
if the feature has no reference beforedefault void removeReference(SingleFeatureBean feature)
ReferenceMapperfeature.removeReference in interface ReferenceMapperfeature - the bean identifying the referenceCopyright © 2013–2019 Atlanmod. All rights reserved.