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 classBuilds 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 aCtxExtraDateSerializervalue.booleanReturns true if this should render as a deserializer.booleanThis instance is equal to all instances ofImmutableCtxExtraDateSerializerthat 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.inthashCode()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.booleanReturns true if jackson fasterxml serializer is used, otherwise false.booleanjsonb()Returns true if jsonb serializer is used, otherwise false.Returns the package name for the class.booleanReturns true if this should render LocalDate type handling.booleanReturns true if this should render LocalDateTime type handling.booleanReturns true if this should render OffsetDateTime type handling.toString()Prints the immutable valueCtxExtraDateSerializerwith attribute values.version()Returns the application version.withAppDescription(String value) Copy the current immutable object by setting a present value for the optionalappDescriptionattribute.withAppDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for theappDescriptionattribute.withAppName(String value) Copy the current immutable object by setting a value for theappNameattribute.Copy the current immutable object by setting a present value for the optionalcannedLocalDateSerializerDTFattribute.withCannedLocalDateSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateSerializerDTFattribute.Copy the current immutable object by setting a present value for the optionalcannedLocalDateTimeSerializerDTFattribute.withCannedLocalDateTimeSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateTimeSerializerDTFattribute.Copy the current immutable object by setting a present value for the optionalcannedOffsetDateTimeSerializerDTFattribute.withCannedOffsetDateTimeSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedOffsetDateTimeSerializerDTFattribute.withClassName(String value) Copy the current immutable object by setting a value for theclassNameattribute.withDeserializer(boolean value) Copy the current immutable object by setting a value for thedeserializerattribute.Copy the current immutable object by setting a value for thegeneratedAnnotationClassattribute.withGeneratedDate(String value) Copy the current immutable object by setting a present value for the optionalgeneratedDateattribute.withGeneratedDate(Optional<String> optional) Copy the current immutable object by setting an optional value for thegeneratedDateattribute.withGeneratorClass(String value) Copy the current immutable object by setting a value for thegeneratorClassattribute.withImports(SortedSet<String> value) Copy the current immutable object by setting a value for theimportsattribute.withInfoEmail(String value) Copy the current immutable object by setting a present value for the optionalinfoEmailattribute.withInfoEmail(Optional<String> optional) Copy the current immutable object by setting an optional value for theinfoEmailattribute.withJacksonFasterxml(boolean value) Copy the current immutable object by setting a value for thejacksonFasterxmlattribute.withJsonb(boolean value) Copy the current immutable object by setting a value for thejsonbattribute.withPackageName(String value) Copy the current immutable object by setting a value for thepackageNameattribute.withRenderLocalDate(boolean value) Copy the current immutable object by setting a value for therenderLocalDateattribute.withRenderLocalDateTime(boolean value) Copy the current immutable object by setting a value for therenderLocalDateTimeattribute.withRenderOffsetDateTime(boolean value) Copy the current immutable object by setting a value for therenderOffsetDateTimeattribute.withVersion(String value) Copy the current immutable object by setting a value for theversionattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxExtraDateSerializer
hasImports
-
Method Details
-
className
Returns the class name of the serializer.- Specified by:
classNamein interfaceCtxExtraDateSerializer- Returns:
- the class name of the serializer
-
appName
Returns the application name.- Specified by:
appNamein interfaceCtxExtraDateSerializer- Returns:
- the application name
-
version
Returns the application version.- Specified by:
versionin interfaceCtxExtraDateSerializer- Returns:
- the application version
-
appDescription
Returns the optional application description.- Specified by:
appDescriptionin interfaceCtxExtraDateSerializer- Returns:
- the optional application description
-
infoEmail
Returns the optional application contact email.- Specified by:
infoEmailin interfaceCtxExtraDateSerializer- Returns:
- the optional application contact email
-
getImports
Returns the imports needed in the template.- Specified by:
getImportsin interfaceCtxExtraDateSerializer- Returns:
- the imports needed in the template
-
packageName
Returns the package name for the class.- Specified by:
packageNamein interfaceCtxExtraDateSerializer- Returns:
- the package name for the class
-
jacksonFasterxml
public boolean jacksonFasterxml()Returns true if jackson fasterxml serializer is used, otherwise false.- Specified by:
jacksonFasterxmlin 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:
jsonbin 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:
deserializerin 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:
renderLocalDatein 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:
renderLocalDateTimein 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:
renderOffsetDateTimein interfaceCtxExtraDateSerializer- Returns:
- true if this should render OffsetDateTime type handling
-
generatedAnnotationClass
Returns the name of the Generated annotation class.- Specified by:
generatedAnnotationClassin interfaceCtxExtraDateSerializer- Returns:
- the name of the Generated annotation class
-
generatorClass
Returns the name of the generator class.- Specified by:
generatorClassin interfaceCtxExtraDateSerializer- Returns:
- the name of the generator class
-
generatedDate
Returns the optional date of the generation.- Specified by:
generatedDatein interfaceCtxExtraDateSerializer- Returns:
- the optional date of the generation
-
cannedLocalDateSerializerDTF
Returns the optional date format used by the LocalDate serializer.- Specified by:
cannedLocalDateSerializerDTFin 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:
cannedLocalDateTimeSerializerDTFin 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:
cannedOffsetDateTimeSerializerDTFin interfaceCtxExtraDateSerializer- Returns:
- the optional date time format used by the OffsetDateTime serializer
-
withClassName
Copy the current immutable object by setting a value for theclassNameattribute. 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
thisobject
-
withAppName
Copy the current immutable object by setting a value for theappNameattribute. 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
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. 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
thisobject
-
withAppDescription
Copy the current immutable object by setting a present value for the optionalappDescriptionattribute.- Parameters:
value- The value for appDescription- Returns:
- A modified copy or
thisif not changed
-
withAppDescription
Copy the current immutable object by setting an optional value for theappDescriptionattribute. 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
thisif not changed
-
withInfoEmail
Copy the current immutable object by setting a present value for the optionalinfoEmailattribute.- Parameters:
value- The value for infoEmail- Returns:
- A modified copy or
thisif not changed
-
withInfoEmail
Copy the current immutable object by setting an optional value for theinfoEmailattribute. 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
thisif not changed
-
withImports
Copy the current immutable object by setting a value for theimportsattribute. 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
thisobject
-
withPackageName
Copy the current immutable object by setting a value for thepackageNameattribute. 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
thisobject
-
withJacksonFasterxml
Copy the current immutable object by setting a value for thejacksonFasterxmlattribute. 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
thisobject
-
withJsonb
Copy the current immutable object by setting a value for thejsonbattribute. 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
thisobject
-
withDeserializer
Copy the current immutable object by setting a value for thedeserializerattribute. 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
thisobject
-
withRenderLocalDate
Copy the current immutable object by setting a value for therenderLocalDateattribute. 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
thisobject
-
withRenderLocalDateTime
Copy the current immutable object by setting a value for therenderLocalDateTimeattribute. 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
thisobject
-
withRenderOffsetDateTime
Copy the current immutable object by setting a value for therenderOffsetDateTimeattribute. 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
thisobject
-
withGeneratedAnnotationClass
Copy the current immutable object by setting a value for thegeneratedAnnotationClassattribute. 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
thisobject
-
withGeneratorClass
Copy the current immutable object by setting a value for thegeneratorClassattribute. 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
thisobject
-
withGeneratedDate
Copy the current immutable object by setting a present value for the optionalgeneratedDateattribute.- Parameters:
value- The value for generatedDate- Returns:
- A modified copy or
thisif not changed
-
withGeneratedDate
Copy the current immutable object by setting an optional value for thegeneratedDateattribute. 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
thisif not changed
-
withCannedLocalDateSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedLocalDateSerializerDTFattribute.- Parameters:
value- The value for cannedLocalDateSerializerDTF- Returns:
- A modified copy or
thisif not changed
-
withCannedLocalDateSerializerDTF
public final ImmutableCtxExtraDateSerializer withCannedLocalDateSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateSerializerDTFattribute. 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
thisif not changed
-
withCannedLocalDateTimeSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedLocalDateTimeSerializerDTFattribute.- Parameters:
value- The value for cannedLocalDateTimeSerializerDTF- Returns:
- A modified copy or
thisif not changed
-
withCannedLocalDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer withCannedLocalDateTimeSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedLocalDateTimeSerializerDTFattribute. 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
thisif not changed
-
withCannedOffsetDateTimeSerializerDTF
Copy the current immutable object by setting a present value for the optionalcannedOffsetDateTimeSerializerDTFattribute.- Parameters:
value- The value for cannedOffsetDateTimeSerializerDTF- Returns:
- A modified copy or
thisif not changed
-
withCannedOffsetDateTimeSerializerDTF
public final ImmutableCtxExtraDateSerializer withCannedOffsetDateTimeSerializerDTF(Optional<String> optional) Copy the current immutable object by setting an optional value for thecannedOffsetDateTimeSerializerDTFattribute. 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
thisif not changed
-
equals
This instance is equal to all instances ofImmutableCtxExtraDateSerializerthat 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 valueCtxExtraDateSerializerwith attribute values. -
copyOf
Creates an immutable copy of aCtxExtraDateSerializervalue. 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) // requiredclassName.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
-