M - the type of the references after mapping@ParametersAreNonnullByDefault public interface ManyReferenceAs<M> extends ManyValueMapper, ManyReferenceMapper
ManyReferenceMapper that provides a default behavior to use M instead of Id for
 multi-valued references.| Modifier and Type | Method and Description | 
|---|---|
| default void | addAllReferences(ManyFeatureBean feature,
                List<Id> collection)Adds all the  collectionto the specifiedfeaturefrom the position of thefeature. | 
| default void | addReference(ManyFeatureBean feature,
            Id reference)Adds the  referenceto the specifiedfeatureat a defined position. | 
| default 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. | 
| Converter<Id,M> | manyReferenceConverter()Returns the converter used to transform a multi-valued reference to the desired type. | 
| default Optional<Id> | referenceFor(ManyFeatureBean feature,
            Id reference)Defines the  referenceof the specifiedfeatureat a defined position. | 
| default Optional<Id> | referenceOf(ManyFeatureBean feature)Retrieves the reference of the specified  featureat a defined position. | 
| default void | removeAllReferences(SingleFeatureBean feature)Removes all references of the specified  feature. | 
| default Optional<Id> | removeReference(ManyFeatureBean feature)Removes the reference of the specified  featureat a defined position. | 
| default Optional<Integer> | sizeOfReference(SingleFeatureBean feature)Returns the number of reference of the specified  feature. | 
addAllValues, addValue, allValuesOf, appendAllValues, appendValue, removeAllValues, removeValue, sizeOfValue, valueFor, valueOfremoveValue, valueFor, valueOfreferenceFor, referenceOf, removeReference@Nonnull default Optional<Id> referenceOf(ManyFeatureBean feature)
ManyReferenceMapperfeature at a defined position.referenceOf in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referenceOptional containing the reference, or Optional.empty() if the feature hasn't any
 reference or doesn't exist@Nonnull default Stream<Id> allReferencesOf(SingleFeatureBean feature)
ManyReferenceMapperfeature.allReferencesOf in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referenceStream over all references@Nonnull default Optional<Id> referenceFor(ManyFeatureBean feature, Id reference)
ManyReferenceMapperreference of the specified feature at a defined position.referenceFor in interface ManyReferenceMapperfeature - 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 beforeManyReferenceMapper.addReference(ManyFeatureBean, Id), 
ManyReferenceMapper.appendReference(SingleFeatureBean, Id)default void addReference(ManyFeatureBean feature, Id reference)
ManyReferenceMapperreference to the specified feature at a defined position.addReference in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referencereference - the reference to adddefault void addAllReferences(ManyFeatureBean feature, List<Id> collection)
ManyReferenceMappercollection to the specified feature from the position of the feature.addAllReferences in interface ManyReferenceMapperfeature - the bean identifying the multi-valued attributecollection - the values to adddefault int appendReference(SingleFeatureBean feature, Id reference)
ManyReferenceMapperreference to the specified feature at the last position.appendReference in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referencereference - the reference to addManyReferenceMapper.addReference(ManyFeatureBean, Id)default int appendAllReferences(SingleFeatureBean feature, List<Id> collection)
ManyReferenceMappercollection to the specified feature from the last position.appendAllReferences in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referencecollection - the references to addManyReferenceMapper.addReference(ManyFeatureBean, Id), 
ManyReferenceMapper.appendReference(SingleFeatureBean, Id)@Nonnull default Optional<Id> removeReference(ManyFeatureBean feature)
ManyReferenceMapperfeature at a defined position.removeReference in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referenceOptional containing the removed reference, or Optional.empty() if the feature has no
 reference beforedefault void removeAllReferences(SingleFeatureBean feature)
ManyReferenceMapperfeature.removeAllReferences in interface ManyReferenceMapperfeature - the bean identifying the multi-valued reference@Nonnull default Optional<Integer> sizeOfReference(SingleFeatureBean feature)
ManyReferenceMapperfeature.sizeOfReference in interface ManyReferenceMapperfeature - the bean identifying the multi-valued referenceOptional containing the number of reference of the feature, or Optional.empty() if the feature hasn't any referenceCopyright © 2013–2019 Atlanmod. All rights reserved.