Class ZonedDateTimeToCalendar

  • All Implemented Interfaces:
    Method

    public class ZonedDateTimeToCalendar
    extends BuiltInMethod
    BuiltInMethod for mapping between Calendar and ZonedDateTime.

    Template is at org.mapstruct.ap.model.builtin.ZonedDateTimeToCalendar.ftl

    • Field Detail

      • returnType

        private final Type returnType
      • parameter

        private final Parameter parameter
      • importedTypes

        private final java.util.Set<Type> importedTypes
    • Constructor Detail

      • ZonedDateTimeToCalendar

        ZonedDateTimeToCalendar​(TypeFactory typeFactory)
    • Method Detail

      • getParameter

        public Parameter getParameter()
        Description copied from class: BuiltInMethod
        There's currently only one parameter foreseen instead of a list of parameter
        Specified by:
        getParameter in class BuiltInMethod
        Returns:
        the parameter
      • getReturnType

        public Type getReturnType()
        Description copied from interface: Method
        Returns the return type of the method
        Returns:
        return type
      • getImportTypes

        public java.util.Set<Type> getImportTypes()
        Description copied from class: BuiltInMethod
        Returns the types used by this method for which import statements need to be generated. Defaults to the empty set. To be overridden by implementations in case they make use of additional types (note that the parameter and return type don't need to be added).
        Overrides:
        getImportTypes in class BuiltInMethod
        Returns:
        the types used by this method for which import statements need to be generated