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
Type s 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, write
public 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()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.public Type getEnumSetElementType()
public boolean isEnumSet()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.