public abstract class ContainerMappingMethod extends NormalTypeMappingMethod
MappingMethod
implemented by a Mapper
class which does mapping of generic types.
For example Iterable or Stream.
The generic elements are mapped either by a TypeConversion
or another mapping method.Writable.Context
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Assignment |
getElementAssignment() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getIndex1Name() |
String |
getIndex2Name() |
IterableCreation |
getIterableCreation() |
String |
getLoopVariableName() |
abstract Type |
getResultElementType() |
Parameter |
getSourceParameter() |
int |
hashCode() |
getFactoryMethod, isMapNullToDefault, isOverridden
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
getTemplateName, getTemplateNameForClass, write
public Parameter getSourceParameter()
public IterableCreation getIterableCreation()
public Assignment getElementAssignment()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class NormalTypeMappingMethod
null
.public String getLoopVariableName()
public abstract Type getResultElementType()
public String getIndex1Name()
public String getIndex2Name()
public int hashCode()
hashCode
in class NormalTypeMappingMethod
public boolean equals(Object obj)
equals
in class NormalTypeMappingMethod
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.