
public class IterableCreation extends ModelElement
Iterable or Map. If an implementation
type is used and the target type has a constructor with int as parameter and the source parameter is of
Collection, Map or Array type then MapStruct will use that constructor
with the size / length from the source parameter.Writable.Context| Modifier and Type | Method and Description |
|---|---|
static IterableCreation |
create(NormalTypeMappingMethod mappingMethod,
Parameter sourceParameter) |
Type |
getEnumSetElementType() |
MethodReference |
getFactoryMethod() |
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
Type |
getResultType() |
Parameter |
getSourceParameter() |
boolean |
isCanUseSize() |
boolean |
isEnumSet() |
boolean |
isLoadFactorAdjustment() |
getTemplateName, getTemplateNameForClass, writepublic static IterableCreation create(NormalTypeMappingMethod mappingMethod, Parameter sourceParameter)
public Type getResultType()
public Parameter getSourceParameter()
public MethodReference getFactoryMethod()
public boolean isCanUseSize()
public boolean isLoadFactorAdjustment()
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class ModelElementnull.public Type getEnumSetElementType()
public boolean isEnumSet()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.