@ParametersAreNonnullByDefault public interface ReferenceMapper
Modifier and Type | Method and Description |
---|---|
Optional<Id> |
referenceFor(SingleFeatureBean feature,
Id reference)
Defines the reference of the specified
feature . |
Optional<Id> |
referenceOf(SingleFeatureBean feature)
Retrieves the reference of the specified
feature . |
void |
removeReference(SingleFeatureBean feature)
Removes the reference of the specified
feature . |
@Nonnull Optional<Id> referenceOf(SingleFeatureBean feature)
feature
.feature
- the bean identifying the referenceOptional
containing the reference, or Optional.empty()
if the feature hasn't any
reference or doesn't existNullPointerException
- if any parameter is null
@Nonnull Optional<Id> referenceFor(SingleFeatureBean feature, Id reference)
feature
.feature
- 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 beforeNullPointerException
- if any parameter is null
void removeReference(SingleFeatureBean feature)
feature
.feature
- the bean identifying the referenceNullPointerException
- if any parameter is null
Copyright © 2013–2019 Atlanmod. All rights reserved.