public class CollectionAssignmentBuilder extends Object
SetterWrapperForCollectionsAndMapsWithNullCheck
is used when a
direct assignment is done or the NullValueCheckStrategy
is
NullValueCheckStrategy.ALWAYS
. It is also done in
ExistingInstanceSetterWrapperForCollectionsAndMaps
which extends
SetterWrapperForCollectionsAndMapsWithNullCheck
ExistingInstanceSetterWrapperForCollectionsAndMaps
ExistingInstanceSetterWrapperForCollectionsAndMaps
, and
SetterWrapperForCollectionsAndMapsWithNullCheck
NullValueCheckStrategy.ALWAYS
- the user requested oneConstructor and Description |
---|
CollectionAssignmentBuilder() |
Modifier and Type | Method and Description |
---|---|
CollectionAssignmentBuilder |
assignment(Assignment assignment) |
Assignment |
build() |
CollectionAssignmentBuilder |
mappingBuilderContext(MappingBuilderContext ctx) |
CollectionAssignmentBuilder |
method(Method method) |
CollectionAssignmentBuilder |
nullValueCheckStrategy(org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs) |
CollectionAssignmentBuilder |
nullValuePropertyMappingStrategy(org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms) |
CollectionAssignmentBuilder |
rightHandSide(SourceRHS sourceRHS) |
CollectionAssignmentBuilder |
targetAccessorType(AccessorType targetAccessorType) |
CollectionAssignmentBuilder |
targetPropertyName(String targetPropertyName) |
CollectionAssignmentBuilder |
targetReadAccessor(Accessor targetReadAccessor) |
CollectionAssignmentBuilder |
targetType(Type targetType) |
public CollectionAssignmentBuilder mappingBuilderContext(MappingBuilderContext ctx)
public CollectionAssignmentBuilder method(Method method)
public CollectionAssignmentBuilder targetReadAccessor(Accessor targetReadAccessor)
public CollectionAssignmentBuilder targetType(Type targetType)
public CollectionAssignmentBuilder targetPropertyName(String targetPropertyName)
public CollectionAssignmentBuilder targetAccessorType(AccessorType targetAccessorType)
public CollectionAssignmentBuilder assignment(Assignment assignment)
assignment
- the assignment that needs to be invokedpublic CollectionAssignmentBuilder rightHandSide(SourceRHS sourceRHS)
sourceRHS
- the source right hand side for getting the property for mappingpublic CollectionAssignmentBuilder nullValueCheckStrategy(org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem nvcs)
public CollectionAssignmentBuilder nullValuePropertyMappingStrategy(org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem nvpms)
public Assignment build()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.