Class ImplementationType
java.lang.Object
org.mapstruct.ap.internal.model.common.ImplementationType
This is a wrapper class for the Implementation types that are used within MapStruct. It contains all the
information needed for an Iterable creation
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionCreates newImplementationTypethat has the sameinitialCapacityConstructorandloadFactorAdjustment, but a different underlyingTypegetType()booleanbooleanstatic ImplementationTypewithDefaultConstructor(Type type) static ImplementationTypewithFactoryMethod(Type type, String factoryMethodName) static ImplementationTypewithInitialCapacity(Type type) static ImplementationTypewithLoadFactorAdjustment(Type type)
-
Method Details
-
withDefaultConstructor
-
withInitialCapacity
-
withLoadFactorAdjustment
-
withFactoryMethod
-
createNew
Creates newImplementationTypethat has the sameinitialCapacityConstructorandloadFactorAdjustment, but a different underlyingType- Parameters:
type- to be replaced- Returns:
- a new implementation type with the given
type
-
getType
- Returns:
- the underlying
Type
-
hasInitialCapacityConstructor
public boolean hasInitialCapacityConstructor()- Returns:
trueif the underlying type has a constructor forintinitialCapacity,falseotherwise
-
isLoadFactorAdjustment
public boolean isLoadFactorAdjustment()- Returns:
trueif the underlying type needs adjustment for the initial capacity constructor,falseotherwise
-
getFactoryMethodName
-