Class AbstractBaseBuilder<B extends AbstractBaseBuilder<B>>

    • Constructor Detail

      • AbstractBaseBuilder

        AbstractBaseBuilder​(java.lang.Class<B> selfType)
    • Method Detail

      • method

        public B method​(Method sourceMethod)
      • canGenerateAutoSubMappingBetween

        boolean canGenerateAutoSubMappingBetween​(Type sourceType,
                                                 Type targetType)
        Checks if MapStruct is allowed to generate an automatic sub-mapping between sourceType and @{code targetType}. This will evaluate to true, when:
        • Automatic sub-mapping methods generation is not disabled
          MapStruct is allowed to generate an automatic sub-mapping between the sourceType and targetType
Parameters:
sourceType - candidate source type to generate a sub-mapping from
targetType - candidate target type to generate a sub-mapping for
Returns:
true if MapStruct can try to generate an automatic sub-mapping between the types.