Class 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 Detail

      • createNew

        public ImplementationType createNew​(Type type)
        Creates new ImplementationType that has the same initialCapacityConstructor and loadFactorAdjustment, but a different underlying Type
        Parameters:
        type - to be replaced
        Returns:
        a new implementation type with the given type
      • getType

        public Type getType()
        Returns:
        the underlying Type
      • hasInitialCapacityConstructor

        public boolean hasInitialCapacityConstructor()
        Returns:
        true if the underlying type has a constructor for int initialCapacity, false otherwise
      • isLoadFactorAdjustment

        public boolean isLoadFactorAdjustment()
        If this method returns true then hasInitialCapacityConstructor() also returns true
        Returns:
        true if the underlying type needs adjustment for the initial capacity constructor, false otherwise