@ParametersAreNonnullByDefault public interface ManyReferenceMapper extends ReferenceMapper
| Modifier and Type | Method and Description | 
|---|---|
| void | addAllReferences(ManyFeatureBean feature,
                List<Id> collection)Adds all the  collectionto the specifiedfeaturefrom the position of thefeature. | 
| void | addReference(ManyFeatureBean feature,
            Id reference)Adds the  referenceto the specifiedfeatureat a defined position. | 
| Stream<Id> | allReferencesOf(SingleFeatureBean feature)Retrieves all references of the specified  feature. | 
| default int | appendAllReferences(SingleFeatureBean feature,
                   List<Id> collection)Adds all the  collectionto the specifiedfeaturefrom the last position. | 
| default int | appendReference(SingleFeatureBean feature,
               Id reference)Adds the  referenceto the specifiedfeatureat the last position. | 
| Optional<Id> | referenceFor(ManyFeatureBean feature,
            Id reference)Defines the  referenceof the specifiedfeatureat a defined position. | 
| Optional<Id> | referenceOf(ManyFeatureBean feature)Retrieves the reference of the specified  featureat a defined position. | 
| void | removeAllReferences(SingleFeatureBean feature)Removes all references of the specified  feature. | 
| Optional<Id> | removeReference(ManyFeatureBean feature)Removes the reference of the specified  featureat a defined position. | 
| Optional<Integer> | sizeOfReference(SingleFeatureBean feature)Returns the number of reference of the specified  feature. | 
referenceFor, referenceOf, removeReference@Nonnull Optional<Id> referenceOf(ManyFeatureBean feature)
feature at a defined position.feature - the bean identifying the multi-valued referenceOptional containing the reference, or Optional.empty() if the feature hasn't any
 reference or doesn't existNullPointerException - if the feature is null@Nonnull Stream<Id> allReferencesOf(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued referenceStream over all referencesNullPointerException - if the feature is null@Nonnull Optional<Id> referenceFor(ManyFeatureBean feature, Id reference)
reference of the specified feature at a defined position.feature - the bean identifying the multi-valued 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 nullIndexOutOfBoundsException - if index.position < 0 || index.position >= sizeaddReference(ManyFeatureBean, Id), 
appendReference(SingleFeatureBean, Id)void addReference(ManyFeatureBean feature, Id reference)
reference to the specified feature at a defined position.feature - the bean identifying the multi-valued referencereference - the reference to addNullPointerException - if any parameter is nullIndexOutOfBoundsException - if feature.position > sizevoid addAllReferences(ManyFeatureBean feature, List<Id> collection)
collection to the specified feature from the position of the feature.feature - the bean identifying the multi-valued attributecollection - the values to addNullPointerException - if any parameter is nullIndexOutOfBoundsException - if feature.position > size@Nonnegative default int appendReference(SingleFeatureBean feature, Id reference)
reference to the specified feature at the last position.feature - the bean identifying the multi-valued referencereference - the reference to addNullPointerException - if any parameter is nulladdReference(ManyFeatureBean, Id)@Nonnegative default int appendAllReferences(SingleFeatureBean feature, List<Id> collection)
collection to the specified feature from the last position.feature - the bean identifying the multi-valued referencecollection - the references to addNullPointerException - if any parameter is nulladdReference(ManyFeatureBean, Id), 
appendReference(SingleFeatureBean, Id)@Nonnull Optional<Id> removeReference(ManyFeatureBean feature)
feature at a defined position.feature - the bean identifying the multi-valued referenceOptional containing the removed reference, or Optional.empty() if the feature has no
 reference beforeNullPointerException - if the feature is nullvoid removeAllReferences(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued referenceNullPointerException - if the feature is null@Nonnull @Nonnegative Optional<Integer> sizeOfReference(SingleFeatureBean feature)
feature.feature - the bean identifying the multi-valued referenceOptional containing the number of reference of the feature, or Optional.empty() if the feature hasn't any referenceNullPointerException - if the feature is nullCopyright © 2013–2019 Atlanmod. All rights reserved.