Class ImplementationType
- java.lang.Object
-
- org.mapstruct.ap.internal.model.common.ImplementationType
-
public class ImplementationType extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImplementationType
createNew(Type type)
Creates newImplementationType
that has the sameinitialCapacityConstructor
andloadFactorAdjustment
, but a different underlyingType
String
getFactoryMethodName()
Type
getType()
boolean
hasInitialCapacityConstructor()
boolean
isLoadFactorAdjustment()
static ImplementationType
withDefaultConstructor(Type type)
static ImplementationType
withFactoryMethod(Type type, String factoryMethodName)
static ImplementationType
withInitialCapacity(Type type)
static ImplementationType
withLoadFactorAdjustment(Type type)
-
-
-
Method Detail
-
withDefaultConstructor
public static ImplementationType withDefaultConstructor(Type type)
-
withInitialCapacity
public static ImplementationType withInitialCapacity(Type type)
-
withLoadFactorAdjustment
public static ImplementationType withLoadFactorAdjustment(Type type)
-
withFactoryMethod
public static ImplementationType withFactoryMethod(Type type, String factoryMethodName)
-
createNew
public ImplementationType createNew(Type type)
Creates newImplementationType
that has the sameinitialCapacityConstructor
andloadFactorAdjustment
, but a different underlyingType
- Parameters:
type
- to be replaced- Returns:
- a new implementation type with the given
type
-
hasInitialCapacityConstructor
public boolean hasInitialCapacityConstructor()
- Returns:
true
if the underlying type has a constructor forint
initialCapacity
,false
otherwise
-
isLoadFactorAdjustment
public boolean isLoadFactorAdjustment()
- Returns:
true
if the underlying type needs adjustment for the initial capacity constructor,false
otherwise
-
getFactoryMethodName
public String getFactoryMethodName()
-
-