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()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableCtxExtraDateSerializer
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional application description.appName()
Returns the application name.builder()
Creates a builder forImmutableCtxExtraDateSerializer
.Returns the optional date format used by the LocalDate serializer.Returns the optional date time format used by the LocalDateTime serializer.Returns the optional date time format used by the OffsetDateTime serializer.Returns the class name of the serializer.copyOf
(CtxExtraDateSerializer instance) Creates an immutable copy of aCtxExtraDateSerializer
value.boolean
Returns true if this should render as a deserializer.boolean
This instance is equal to all instances ofImmutableCtxExtraDateSerializer
that have equal attribute values.Returns the name of the Generated annotation class.Returns the optional date of the generation.Returns the name of the generator class.Returns the imports needed in the template.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
.Returns the optional application contact email.boolean
Returns true if jackson fasterxml serializer is used, otherwise false.boolean
jsonb()
Returns true if jsonb serializer is used, otherwise false.Returns the package name for the class.boolean
Returns true if this should render LocalDate type handling.boolean
Returns true if this should render LocalDateTime type handling.boolean
Returns true if this should render OffsetDateTime type handling.toString()
Prints the immutable valueCtxExtraDateSerializer
with attribute values.version()
Returns the application version.withAppDescription
(String value) Copy the current immutable object by setting a present value for the optionalappDescription
attribute.withAppDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for theappDescription
attribute.withAppName
(String value) Copy the current immutable object by setting a value for theappName
attribute.Copy the current immutable object by setting a present value for the optionalcannedLocalDateSerializerDTF
attribute.withCannedLocalDateSerializerDTF
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateSerializerDTF
attribute.Copy the current immutable object by setting a present value for the optionalcannedLocalDateTimeSerializerDTF
attribute.withCannedLocalDateTimeSerializerDTF
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateTimeSerializerDTF
attribute.Copy the current immutable object by setting a present value for the optionalcannedOffsetDateTimeSerializerDTF
attribute.withCannedOffsetDateTimeSerializerDTF
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedOffsetDateTimeSerializerDTF
attribute.withClassName
(String value) Copy the current immutable object by setting a value for theclassName
attribute.withDeserializer
(boolean value) Copy the current immutable object by setting a value for thedeserializer
attribute.Copy the current immutable object by setting a value for thegeneratedAnnotationClass
attribute.withGeneratedDate
(String value) Copy the current immutable object by setting a present value for the optionalgeneratedDate
attribute.withGeneratedDate
(Optional<String> optional) Copy the current immutable object by setting an optional value for thegeneratedDate
attribute.withGeneratorClass
(String value) Copy the current immutable object by setting a value for thegeneratorClass
attribute.withImports
(SortedSet<String> value) Copy the current immutable object by setting a value for theimports
attribute.withInfoEmail
(String value) Copy the current immutable object by setting a present value for the optionalinfoEmail
attribute.withInfoEmail
(Optional<String> optional) Copy the current immutable object by setting an optional value for theinfoEmail
attribute.withJacksonFasterxml
(boolean value) Copy the current immutable object by setting a value for thejacksonFasterxml
attribute.withJsonb
(boolean value) Copy the current immutable object by setting a value for thejsonb
attribute.withPackageName
(String value) Copy the current immutable object by setting a value for thepackageName
attribute.withRenderLocalDate
(boolean value) Copy the current immutable object by setting a value for therenderLocalDate
attribute.withRenderLocalDateTime
(boolean value) Copy the current immutable object by setting a value for therenderLocalDateTime
attribute.withRenderOffsetDateTime
(boolean value) Copy the current immutable object by setting a value for therenderOffsetDateTime
attribute.withVersion
(String value) Copy the current immutable object by setting a value for theversion
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxExtraDateSerializer
hasImports
-
Method Details
-
className
Returns the class name of the serializer.- Specified by:
className
in interfaceCtxExtraDateSerializer
- Returns:
- the class name of the serializer
-
appName
Returns the application name.- Specified by:
appName
in interfaceCtxExtraDateSerializer
- Returns:
- the application name
-
version
Returns the application version.- Specified by:
version
in interfaceCtxExtraDateSerializer
- Returns:
- the application version
-
appDescription
Returns the optional application description.- Specified by:
appDescription
in interfaceCtxExtraDateSerializer
- Returns:
- the optional application description
-
infoEmail
Returns the optional application contact email.- Specified by:
infoEmail
in interfaceCtxExtraDateSerializer
- Returns:
- the optional application contact email
-
getImports
Returns the imports needed in the template.- Specified by:
getImports
in interfaceCtxExtraDateSerializer
- Returns:
- the imports needed in the template
-
packageName
Returns the package name for the class.- Specified by:
packageName
in interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- 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 interfaceCtxExtraDateSerializer
- Returns:
- true if this should render OffsetDateTime type handling
-
generatedAnnotationClass
Returns the name of the Generated annotation class.- Specified by:
generatedAnnotationClass
in interfaceCtxExtraDateSerializer
- Returns:
- the name of the Generated annotation class
-
generatorClass
Returns the name of the generator class.- Specified by:
generatorClass
in interfaceCtxExtraDateSerializer
- Returns:
- the name of the generator class
-
generatedDate
Returns the optional date of the generation.- Specified by:
generatedDate
in interfaceCtxExtraDateSerializer
- Returns:
- the optional date of the generation
-
cannedLocalDateSerializerDTF
Returns the optional date format used by the LocalDate serializer.- Specified by:
cannedLocalDateSerializerDTF
in interfaceCtxExtraDateSerializer
- Returns:
- the optional date format used by the LocalDate serializer
-
cannedLocalDateTimeSerializerDTF
Returns the optional date time format used by the LocalDateTime serializer.- Specified by:
cannedLocalDateTimeSerializerDTF
in interfaceCtxExtraDateSerializer
- Returns:
- the optional date time format used by the LocalDateTime serializer
-
cannedOffsetDateTimeSerializerDTF
Returns the optional date time format used by the OffsetDateTime serializer.- Specified by:
cannedOffsetDateTimeSerializerDTF
in interfaceCtxExtraDateSerializer
- Returns:
- the optional date time format used by the OffsetDateTime serializer
-
withClassName
Copy the current immutable object by setting a value for theclassName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for className- Returns:
- A modified copy or the
this
object
-
withAppName
Copy the current immutable object by setting a value for theappName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for appName- Returns:
- A modified copy or the
this
object
-
withVersion
Copy the current immutable object by setting a value for theversion
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for version- Returns:
- A modified copy or the
this
object
-
withAppDescription
Copy the current immutable object by setting a present value for the optionalappDescription
attribute.- Parameters:
value
- The value for appDescription- Returns:
- A modified copy or
this
if not changed
-
withAppDescription
Copy the current immutable object by setting an optional value for theappDescription
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for appDescription- Returns:
- A modified copy or
this
if not changed
-
withInfoEmail
Copy the current immutable object by setting a present value for the optionalinfoEmail
attribute.- Parameters:
value
- The value for infoEmail- Returns:
- A modified copy or
this
if not changed
-
withInfoEmail
Copy the current immutable object by setting an optional value for theinfoEmail
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for infoEmail- Returns:
- A modified copy or
this
if not changed
-
withImports
Copy the current immutable object by setting a value for theimports
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for imports- Returns:
- A modified copy or the
this
object
-
withPackageName
Copy the current immutable object by setting a value for thepackageName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for packageName- Returns:
- A modified copy or the
this
object
-
withJacksonFasterxml
Copy the current immutable object by setting a value for thejacksonFasterxml
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for jacksonFasterxml- Returns:
- A modified copy or the
this
object
-
withJsonb
Copy the current immutable object by setting a value for thejsonb
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for jsonb- Returns:
- A modified copy or the
this
object
-
withDeserializer
Copy the current immutable object by setting a value for thedeserializer
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for deserializer- Returns:
- A modified copy or the
this
object
-
withRenderLocalDate
Copy the current immutable object by setting a value for therenderLocalDate
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderLocalDate- Returns:
- A modified copy or the
this
object
-
withRenderLocalDateTime
Copy the current immutable object by setting a value for therenderLocalDateTime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderLocalDateTime- Returns:
- A modified copy or the
this
object
-
withRenderOffsetDateTime
Copy the current immutable object by setting a value for therenderOffsetDateTime
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderOffsetDateTime- Returns:
- A modified copy or the
this
object
-
withGeneratedAnnotationClass
Copy the current immutable object by setting a value for thegeneratedAnnotationClass
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for generatedAnnotationClass- Returns:
- A modified copy or the
this
object
-
withGeneratorClass
Copy the current immutable object by setting a value for thegeneratorClass
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for generatorClass- Returns:
- A modified copy or the
this
object
-
withGeneratedDate
Copy the current immutable object by setting a present value for the optionalgeneratedDate
attribute.- Parameters:
value
- The value for generatedDate- Returns:
- A modified copy or
this
if not changed
-
withGeneratedDate
Copy the current immutable object by setting an optional value for thegeneratedDate
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for generatedDate- Returns:
- A modified copy or
this
if not changed
-
withCannedLocalDateSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedLocalDateSerializerDTF
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 thecannedLocalDateSerializerDTF
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for cannedLocalDateSerializerDTF- Returns:
- A modified copy or
this
if not changed
-
withCannedLocalDateTimeSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedLocalDateTimeSerializerDTF
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 thecannedLocalDateTimeSerializerDTF
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for cannedLocalDateTimeSerializerDTF- Returns:
- A modified copy or
this
if not changed
-
withCannedOffsetDateTimeSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedOffsetDateTimeSerializerDTF
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 thecannedOffsetDateTimeSerializerDTF
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for cannedOffsetDateTimeSerializerDTF- Returns:
- A modified copy or
this
if not changed
-
equals
This instance is equal to all instances ofImmutableCtxExtraDateSerializer
that have equal attribute values. -
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
. -
toString
Prints the immutable valueCtxExtraDateSerializer
with attribute values. -
copyOf
Creates an immutable copy of aCtxExtraDateSerializer
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
Creates a builder forImmutableCtxExtraDateSerializer
.ImmutableCtxExtraDateSerializer.builder() .className(String) // required
className
.appName(String) // requiredappName
.version(String) // requiredversion
.appDescription(Optional<String>) // optionalappDescription
.infoEmail(Optional<String>) // optionalinfoEmail
.imports(SortedSet<String>) // requiredimports
.packageName(String) // requiredpackageName
.jacksonFasterxml(boolean) // requiredjacksonFasterxml
.jsonb(boolean) // requiredjsonb
.deserializer(boolean) // requireddeserializer
.renderLocalDate(boolean) // requiredrenderLocalDate
.renderLocalDateTime(boolean) // requiredrenderLocalDateTime
.renderOffsetDateTime(boolean) // requiredrenderOffsetDateTime
.generatedAnnotationClass(String) // requiredgeneratedAnnotationClass
.generatorClass(String) // requiredgeneratorClass
.generatedDate(Optional<String>) // optionalgeneratedDate
.cannedLocalDateSerializerDTF(Optional<String>) // optionalcannedLocalDateSerializerDTF
.cannedLocalDateTimeSerializerDTF(Optional<String>) // optionalcannedLocalDateTimeSerializerDTF
.cannedOffsetDateTimeSerializerDTF(Optional<String>) // optionalcannedOffsetDateTimeSerializerDTF
.build();- Returns:
- A new ImmutableCtxExtraDateSerializer builder
-