Class ImmutableCtxExtraDateSerializer

java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxExtraDateSerializer
All Implemented Interfaces:
CtxExtraDateSerializer

@Generated(from="CtxExtraDateSerializer", generator="Immutables") @Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCtxExtraDateSerializer extends Object implements CtxExtraDateSerializer
Immutable implementation of CtxExtraDateSerializer.

Use the builder to create immutable instances: ImmutableCtxExtraDateSerializer.builder().

  • Method Details

    • className

      public String className()
      Returns the class name of the serializer.
      Specified by:
      className in interface CtxExtraDateSerializer
      Returns:
      the class name of the serializer
    • appName

      public String appName()
      Returns the application name.
      Specified by:
      appName in interface CtxExtraDateSerializer
      Returns:
      the application name
    • version

      public String version()
      Returns the application version.
      Specified by:
      version in interface CtxExtraDateSerializer
      Returns:
      the application version
    • appDescription

      public Optional<String> appDescription()
      Returns the optional application description.
      Specified by:
      appDescription in interface CtxExtraDateSerializer
      Returns:
      the optional application description
    • infoEmail

      public Optional<String> infoEmail()
      Returns the optional application contact email.
      Specified by:
      infoEmail in interface CtxExtraDateSerializer
      Returns:
      the optional application contact email
    • getImports

      public SortedSet<String> getImports()
      Returns the imports needed in the template.
      Specified by:
      getImports in interface CtxExtraDateSerializer
      Returns:
      the imports needed in the template
    • packageName

      public String packageName()
      Returns the package name for the class.
      Specified by:
      packageName in interface CtxExtraDateSerializer
      Returns:
      the package name for the class
    • jacksonFasterxml

      public boolean jacksonFasterxml()
      Returns true if jackson fasterxml serializer is used, otherwise false.
      Specified by:
      jacksonFasterxml in interface CtxExtraDateSerializer
      Returns:
      true if jackson fasterxml serializer is used, otherwise false
    • jsonb

      public boolean jsonb()
      Returns true if jsonb serializer is used, otherwise false.
      Specified by:
      jsonb in interface CtxExtraDateSerializer
      Returns:
      true if jsonb serializer is used, otherwise false
    • deserializer

      public boolean deserializer()
      Returns true if this should render as a deserializer.
      Specified by:
      deserializer in interface CtxExtraDateSerializer
      Returns:
      true if this should render as a deserializer
    • renderLocalDate

      public boolean renderLocalDate()
      Returns true if this should render LocalDate type handling.
      Specified by:
      renderLocalDate in interface CtxExtraDateSerializer
      Returns:
      true if this should render LocalDate type handling
    • renderLocalDateTime

      public boolean renderLocalDateTime()
      Returns true if this should render LocalDateTime type handling.
      Specified by:
      renderLocalDateTime in interface CtxExtraDateSerializer
      Returns:
      true if this should render LocalDateTime type handling
    • renderOffsetDateTime

      public boolean renderOffsetDateTime()
      Returns true if this should render OffsetDateTime type handling.
      Specified by:
      renderOffsetDateTime in interface CtxExtraDateSerializer
      Returns:
      true if this should render OffsetDateTime type handling
    • generatedAnnotationClass

      public String generatedAnnotationClass()
      Returns the name of the Generated annotation class.
      Specified by:
      generatedAnnotationClass in interface CtxExtraDateSerializer
      Returns:
      the name of the Generated annotation class
    • generatorClass

      public String generatorClass()
      Returns the name of the generator class.
      Specified by:
      generatorClass in interface CtxExtraDateSerializer
      Returns:
      the name of the generator class
    • generatedDate

      public Optional<String> generatedDate()
      Returns the optional date of the generation.
      Specified by:
      generatedDate in interface CtxExtraDateSerializer
      Returns:
      the optional date of the generation
    • cannedLocalDateSerializerDTF

      public Optional<String> cannedLocalDateSerializerDTF()
      Returns the optional date format used by the LocalDate serializer.
      Specified by:
      cannedLocalDateSerializerDTF in interface CtxExtraDateSerializer
      Returns:
      the optional date format used by the LocalDate serializer
    • cannedLocalDateTimeSerializerDTF

      public Optional<String> cannedLocalDateTimeSerializerDTF()
      Returns the optional date time format used by the LocalDateTime serializer.
      Specified by:
      cannedLocalDateTimeSerializerDTF in interface CtxExtraDateSerializer
      Returns:
      the optional date time format used by the LocalDateTime serializer
    • cannedOffsetDateTimeSerializerDTF

      public Optional<String> cannedOffsetDateTimeSerializerDTF()
      Returns the optional date time format used by the OffsetDateTime serializer.
      Specified by:
      cannedOffsetDateTimeSerializerDTF in interface CtxExtraDateSerializer
      Returns:
      the optional date time format used by the OffsetDateTime serializer
    • withClassName

      public final ImmutableCtxExtraDateSerializer withClassName(String value)
      Copy the current immutable object by setting a value for the className attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for className
      Returns:
      A modified copy or the this object
    • withAppName

      public final ImmutableCtxExtraDateSerializer withAppName(String value)
      Copy the current immutable object by setting a value for the appName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for appName
      Returns:
      A modified copy or the this object
    • withVersion

      public final ImmutableCtxExtraDateSerializer withVersion(String value)
      Copy the current immutable object by setting a value for the version attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for version
      Returns:
      A modified copy or the this object
    • withAppDescription

      public final ImmutableCtxExtraDateSerializer withAppDescription(String value)
      Copy the current immutable object by setting a present value for the optional appDescription attribute.
      Parameters:
      value - The value for appDescription
      Returns:
      A modified copy or this if not changed
    • withAppDescription

      public final ImmutableCtxExtraDateSerializer withAppDescription(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the appDescription attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for appDescription
      Returns:
      A modified copy or this if not changed
    • withInfoEmail

      public final ImmutableCtxExtraDateSerializer withInfoEmail(String value)
      Copy the current immutable object by setting a present value for the optional infoEmail attribute.
      Parameters:
      value - The value for infoEmail
      Returns:
      A modified copy or this if not changed
    • withInfoEmail

      public final ImmutableCtxExtraDateSerializer withInfoEmail(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the infoEmail attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for infoEmail
      Returns:
      A modified copy or this if not changed
    • withImports

      public final ImmutableCtxExtraDateSerializer withImports(SortedSet<String> value)
      Copy the current immutable object by setting a value for the imports attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for imports
      Returns:
      A modified copy or the this object
    • withPackageName

      public final ImmutableCtxExtraDateSerializer withPackageName(String value)
      Copy the current immutable object by setting a value for the packageName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for packageName
      Returns:
      A modified copy or the this object
    • withJacksonFasterxml

      public final ImmutableCtxExtraDateSerializer withJacksonFasterxml(boolean value)
      Copy the current immutable object by setting a value for the jacksonFasterxml attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for jacksonFasterxml
      Returns:
      A modified copy or the this object
    • withJsonb

      public final ImmutableCtxExtraDateSerializer withJsonb(boolean value)
      Copy the current immutable object by setting a value for the jsonb attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for jsonb
      Returns:
      A modified copy or the this object
    • withDeserializer

      public final ImmutableCtxExtraDateSerializer withDeserializer(boolean value)
      Copy the current immutable object by setting a value for the deserializer attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for deserializer
      Returns:
      A modified copy or the this object
    • withRenderLocalDate

      public final ImmutableCtxExtraDateSerializer withRenderLocalDate(boolean value)
      Copy the current immutable object by setting a value for the renderLocalDate attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for renderLocalDate
      Returns:
      A modified copy or the this object
    • withRenderLocalDateTime

      public final ImmutableCtxExtraDateSerializer withRenderLocalDateTime(boolean value)
      Copy the current immutable object by setting a value for the renderLocalDateTime attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for renderLocalDateTime
      Returns:
      A modified copy or the this object
    • withRenderOffsetDateTime

      public final ImmutableCtxExtraDateSerializer withRenderOffsetDateTime(boolean value)
      Copy the current immutable object by setting a value for the renderOffsetDateTime attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for renderOffsetDateTime
      Returns:
      A modified copy or the this object
    • withGeneratedAnnotationClass

      public final ImmutableCtxExtraDateSerializer withGeneratedAnnotationClass(String value)
      Copy the current immutable object by setting a value for the generatedAnnotationClass attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for generatedAnnotationClass
      Returns:
      A modified copy or the this object
    • withGeneratorClass

      public final ImmutableCtxExtraDateSerializer withGeneratorClass(String value)
      Copy the current immutable object by setting a value for the generatorClass attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for generatorClass
      Returns:
      A modified copy or the this object
    • withGeneratedDate

      public final ImmutableCtxExtraDateSerializer withGeneratedDate(String value)
      Copy the current immutable object by setting a present value for the optional generatedDate attribute.
      Parameters:
      value - The value for generatedDate
      Returns:
      A modified copy or this if not changed
    • withGeneratedDate

      public final ImmutableCtxExtraDateSerializer withGeneratedDate(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the generatedDate attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for generatedDate
      Returns:
      A modified copy or this if not changed
    • withCannedLocalDateSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedLocalDateSerializerDTF(String value)
      Copy the current immutable object by setting a present value for the optional cannedLocalDateSerializerDTF attribute.
      Parameters:
      value - The value for cannedLocalDateSerializerDTF
      Returns:
      A modified copy or this if not changed
    • withCannedLocalDateSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedLocalDateSerializerDTF(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the cannedLocalDateSerializerDTF attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for cannedLocalDateSerializerDTF
      Returns:
      A modified copy or this if not changed
    • withCannedLocalDateTimeSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedLocalDateTimeSerializerDTF(String value)
      Copy the current immutable object by setting a present value for the optional cannedLocalDateTimeSerializerDTF attribute.
      Parameters:
      value - The value for cannedLocalDateTimeSerializerDTF
      Returns:
      A modified copy or this if not changed
    • withCannedLocalDateTimeSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedLocalDateTimeSerializerDTF(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the cannedLocalDateTimeSerializerDTF attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for cannedLocalDateTimeSerializerDTF
      Returns:
      A modified copy or this if not changed
    • withCannedOffsetDateTimeSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedOffsetDateTimeSerializerDTF(String value)
      Copy the current immutable object by setting a present value for the optional cannedOffsetDateTimeSerializerDTF attribute.
      Parameters:
      value - The value for cannedOffsetDateTimeSerializerDTF
      Returns:
      A modified copy or this if not changed
    • withCannedOffsetDateTimeSerializerDTF

      public final ImmutableCtxExtraDateSerializer withCannedOffsetDateTimeSerializerDTF(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the cannedOffsetDateTimeSerializerDTF attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for cannedOffsetDateTimeSerializerDTF
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableCtxExtraDateSerializer that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: className, appName, version, appDescription, infoEmail, imports, packageName, jacksonFasterxml, jsonb, deserializer, renderLocalDate, renderLocalDateTime, renderOffsetDateTime, generatedAnnotationClass, generatorClass, generatedDate, cannedLocalDateSerializerDTF, cannedLocalDateTimeSerializerDTF, cannedOffsetDateTimeSerializerDTF.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value CtxExtraDateSerializer with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a CtxExtraDateSerializer value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable CtxExtraDateSerializer instance
    • builder

      public static ImmutableCtxExtraDateSerializer.Builder builder()
      Creates a builder for ImmutableCtxExtraDateSerializer.
       ImmutableCtxExtraDateSerializer.builder()
          .className(String) // required className
          .appName(String) // required appName
          .version(String) // required version
          .appDescription(Optional<String>) // optional appDescription
          .infoEmail(Optional<String>) // optional infoEmail
          .imports(SortedSet<String>) // required imports
          .packageName(String) // required packageName
          .jacksonFasterxml(boolean) // required jacksonFasterxml
          .jsonb(boolean) // required jsonb
          .deserializer(boolean) // required deserializer
          .renderLocalDate(boolean) // required renderLocalDate
          .renderLocalDateTime(boolean) // required renderLocalDateTime
          .renderOffsetDateTime(boolean) // required renderOffsetDateTime
          .generatedAnnotationClass(String) // required generatedAnnotationClass
          .generatorClass(String) // required generatorClass
          .generatedDate(Optional<String>) // optional generatedDate
          .cannedLocalDateSerializerDTF(Optional<String>) // optional cannedLocalDateSerializerDTF
          .cannedLocalDateTimeSerializerDTF(Optional<String>) // optional cannedLocalDateTimeSerializerDTF
          .cannedOffsetDateTimeSerializerDTF(Optional<String>) // optional cannedOffsetDateTimeSerializerDTF
          .build();
       
      Returns:
      A new ImmutableCtxExtraDateSerializer builder