public class ImplementationType extends Object
Modifier and Type | Method and Description |
---|---|
ImplementationType |
createNew(Type type)
Creates new
ImplementationType that has the same initialCapacityConstructor and
loadFactorAdjustment , but a different underlying Type |
Type |
getType() |
boolean |
hasInitialCapacityConstructor() |
boolean |
isLoadFactorAdjustment()
|
static ImplementationType |
withDefaultConstructor(Type type) |
static ImplementationType |
withInitialCapacity(Type type) |
static ImplementationType |
withLoadFactorAdjustment(Type type) |
public static ImplementationType withDefaultConstructor(Type type)
public static ImplementationType withInitialCapacity(Type type)
public static ImplementationType withLoadFactorAdjustment(Type type)
public ImplementationType createNew(Type type)
ImplementationType
that has the same initialCapacityConstructor
and
loadFactorAdjustment
, but a different underlying Type
type
- to be replacedtype
public boolean hasInitialCapacityConstructor()
true
if the underlying type has a constructor for int
initialCapacity
, false
otherwisepublic boolean isLoadFactorAdjustment()
true
if the underlying type needs adjustment for the initial capacity constructor, false
otherwiseCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.