public class ExistingInstanceSetterWrapperForCollectionsAndMaps extends SetterWrapperForCollectionsAndMapsWithNullCheck
MappingTarget
before adding the source entries.
If there is no pre-existing target, or the target Collection / Map is not initialized (null) the setter is used to
create a new Collection / Map with the copy constructor.Assignment.AssignmentType
Writable.Context
fieldAssignment
Constructor and Description |
---|
ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment,
List<Type> thrownTypesToExclude,
Type targetType,
org.mapstruct.ap.internal.prism.NullValueCheckStrategyPrism nvms,
TypeFactory typeFactory,
boolean fieldAssignment,
boolean mapNullToDefault) |
Modifier and Type | Method and Description |
---|---|
boolean |
isIncludeSourceNullCheck() |
getImportTypes, isDirectAssignment, isEnumSet, isMapNullToDefault
getNullCheckLocalVarName, getNullCheckLocalVarType, getThrownTypes
createLocalVarName, getAssignment, getSourceLocalVarName, getSourceParameterName, getSourcePresenceCheckerReference, getSourceReference, getSourceType, getType, isCallingUpdateMethod, isFieldAssignment, isSourceReferenceParameter, setAssignment, setSourceLocalVarName
getTemplateName, getTemplateNameForClass, write
public ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Type targetType, org.mapstruct.ap.internal.prism.NullValueCheckStrategyPrism nvms, TypeFactory typeFactory, boolean fieldAssignment, boolean mapNullToDefault)
Copyright © 2012-2017 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.