Class ImmutableCtxDtoExt
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxDtoExt
- All Implemented Interfaces:
CtxDtoExt
@Generated(from="CtxDtoExt",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCtxDtoExt
extends Object
implements CtxDtoExt
Immutable implementation of
CtxDtoExt
.
Use the builder to create immutable instances:
ImmutableCtxDtoExt.builder()
.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCtxDtoExt.Builder
builder()
Creates a builder forImmutableCtxDtoExt
.Returns the optional class modifiers.static ImmutableCtxDtoExt
Creates an immutable copy of aCtxDtoExt
value.Returns the optional name of a custom LocalDateDeserializer.Returns the optional name of a custom LocalDateSerializer.Returns the optional name of a custom OffsetDateDeserializer.Returns the optional name of a custom OffsetDateSerializer.boolean
This instance is equal to all instances ofImmutableCtxDtoExt
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:jacksonJsonSerializeOptions
,customLocalDateDeserializer
,customLocalDateSerializer
,customOffsetDateTimeDeserializer
,customOffsetDateTimeSerializer
,jsonb
,schemaOptions
,implementsInterfaces
,isEqualsPrimitive
,isEnumUnknownDefault
,quarkusRegisterForReflection
,isRenderPropertyOrderAnnotation
,varsOpenapiOrder
,classModifiers
,isRenderSingleLineToString
,isRenderToStringHelper
,isRecordCanonicalConstructor
,isRecordBuilder
,isJspecify
,isJspecifyNullUnmarked
.Returns an optional string containing the interfaces implemented by this DTO.boolean
Returns true if enumeration should deserialize unknown input to the last enumeration entry.boolean
Returns true if enumeration data type is primitive and can use == for equals.boolean
Returns true if jspecify Nullable annotations should be used.boolean
Returns true if type is jspecify NullUnmarked - note, not the opposite of isJspecify.boolean
Returns true if a builder should be added to the record.boolean
Returns true if a canonical constructor should be added to the record.boolean
Returns true if the property order annotation should be rendered.boolean
Returns true if the toString should create a single-line string.boolean
Returns true if the toString indentation helper method should be rendered.Returns optional custom jackson @JsonSerialize options.boolean
jsonb()
Returns true if rendering for jsonb, false otherwise.boolean
Returns true if DTO should render @RegisterForReflection.@Nullable String
Returns schema options, or null.toString()
Prints the immutable valueCtxDtoExt
with attribute values.Returns the properties of the class, in openapi document order.final ImmutableCtxDtoExt
withClassModifiers
(String value) Copy the current immutable object by setting a present value for the optionalclassModifiers
attribute.final ImmutableCtxDtoExt
withClassModifiers
(Optional<String> optional) Copy the current immutable object by setting an optional value for theclassModifiers
attribute.final ImmutableCtxDtoExt
Copy the current immutable object by setting a present value for the optionalcustomLocalDateDeserializer
attribute.final ImmutableCtxDtoExt
withCustomLocalDateDeserializer
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomLocalDateDeserializer
attribute.final ImmutableCtxDtoExt
Copy the current immutable object by setting a present value for the optionalcustomLocalDateSerializer
attribute.final ImmutableCtxDtoExt
withCustomLocalDateSerializer
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomLocalDateSerializer
attribute.final ImmutableCtxDtoExt
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeDeserializer
attribute.final ImmutableCtxDtoExt
withCustomOffsetDateTimeDeserializer
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeDeserializer
attribute.final ImmutableCtxDtoExt
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeSerializer
attribute.final ImmutableCtxDtoExt
withCustomOffsetDateTimeSerializer
(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeSerializer
attribute.final ImmutableCtxDtoExt
withImplementsInterfaces
(String value) Copy the current immutable object by setting a present value for the optionalimplementsInterfaces
attribute.final ImmutableCtxDtoExt
withImplementsInterfaces
(Optional<String> optional) Copy the current immutable object by setting an optional value for theimplementsInterfaces
attribute.final ImmutableCtxDtoExt
withIsEnumUnknownDefault
(boolean value) Copy the current immutable object by setting a value for theisEnumUnknownDefault
attribute.final ImmutableCtxDtoExt
withIsEqualsPrimitive
(boolean value) Copy the current immutable object by setting a value for theisEqualsPrimitive
attribute.final ImmutableCtxDtoExt
withIsJspecify
(boolean value) Copy the current immutable object by setting a value for theisJspecify
attribute.final ImmutableCtxDtoExt
withIsJspecifyNullUnmarked
(boolean value) Copy the current immutable object by setting a value for theisJspecifyNullUnmarked
attribute.final ImmutableCtxDtoExt
withIsRecordBuilder
(boolean value) Copy the current immutable object by setting a value for theisRecordBuilder
attribute.final ImmutableCtxDtoExt
withIsRecordCanonicalConstructor
(boolean value) Copy the current immutable object by setting a value for theisRecordCanonicalConstructor
attribute.final ImmutableCtxDtoExt
withIsRenderPropertyOrderAnnotation
(boolean value) Copy the current immutable object by setting a value for theisRenderPropertyOrderAnnotation
attribute.final ImmutableCtxDtoExt
withIsRenderSingleLineToString
(boolean value) Copy the current immutable object by setting a value for theisRenderSingleLineToString
attribute.final ImmutableCtxDtoExt
withIsRenderToStringHelper
(boolean value) Copy the current immutable object by setting a value for theisRenderToStringHelper
attribute.final ImmutableCtxDtoExt
Copy the current immutable object by setting a present value for the optionaljacksonJsonSerializeOptions
attribute.final ImmutableCtxDtoExt
withJacksonJsonSerializeOptions
(Optional<String> optional) Copy the current immutable object by setting an optional value for thejacksonJsonSerializeOptions
attribute.final ImmutableCtxDtoExt
withJsonb
(boolean value) Copy the current immutable object by setting a value for thejsonb
attribute.final ImmutableCtxDtoExt
withQuarkusRegisterForReflection
(boolean value) Copy the current immutable object by setting a value for thequarkusRegisterForReflection
attribute.final ImmutableCtxDtoExt
withSchemaOptions
(@Nullable String value) Copy the current immutable object by setting a value for theschemaOptions
attribute.final ImmutableCtxDtoExt
withVarsOpenapiOrder
(CtxProperty... elements) Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder
.final ImmutableCtxDtoExt
withVarsOpenapiOrder
(Iterable<? extends CtxProperty> elements) Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder
.
-
Method Details
-
jacksonJsonSerializeOptions
Returns optional custom jackson @JsonSerialize options.- Specified by:
jacksonJsonSerializeOptions
in interfaceCtxDtoExt
- Returns:
- optional custom jackson @JsonSerialize options
-
customLocalDateDeserializer
Returns the optional name of a custom LocalDateDeserializer.- Specified by:
customLocalDateDeserializer
in interfaceCtxDtoExt
- Returns:
- the optional name of a custom LocalDateDeserializer
-
customLocalDateSerializer
Returns the optional name of a custom LocalDateSerializer.- Specified by:
customLocalDateSerializer
in interfaceCtxDtoExt
- Returns:
- the optional name of a custom LocalDateSerializer
-
customOffsetDateTimeDeserializer
Returns the optional name of a custom OffsetDateDeserializer.- Specified by:
customOffsetDateTimeDeserializer
in interfaceCtxDtoExt
- Returns:
- the optional name of a custom OffsetDateDeserializer
-
customOffsetDateTimeSerializer
Returns the optional name of a custom OffsetDateSerializer.- Specified by:
customOffsetDateTimeSerializer
in interfaceCtxDtoExt
- Returns:
- the optional name of a custom OffsetDateSerializer
-
jsonb
public boolean jsonb()Returns true if rendering for jsonb, false otherwise. -
schemaOptions
Returns schema options, or null.- Specified by:
schemaOptions
in interfaceCtxDtoExt
- Returns:
- schema options, or null
-
implementsInterfaces
Returns an optional string containing the interfaces implemented by this DTO.- Specified by:
implementsInterfaces
in interfaceCtxDtoExt
- Returns:
- an optional string containing the interfaces implemented by this DTO
-
isEqualsPrimitive
public boolean isEqualsPrimitive()Returns true if enumeration data type is primitive and can use == for equals.- Specified by:
isEqualsPrimitive
in interfaceCtxDtoExt
- Returns:
- true if enumeration data type is primitive and can use == for equals
-
isEnumUnknownDefault
public boolean isEnumUnknownDefault()Returns true if enumeration should deserialize unknown input to the last enumeration entry.- Specified by:
isEnumUnknownDefault
in interfaceCtxDtoExt
- Returns:
- true if enumeration should deserialize unknown input to the last enumeration entry
-
quarkusRegisterForReflection
public boolean quarkusRegisterForReflection()Returns true if DTO should render @RegisterForReflection.- Specified by:
quarkusRegisterForReflection
in interfaceCtxDtoExt
- Returns:
- true if DTO should render @RegisterForReflection
-
isRenderPropertyOrderAnnotation
public boolean isRenderPropertyOrderAnnotation()Returns true if the property order annotation should be rendered.- Specified by:
isRenderPropertyOrderAnnotation
in interfaceCtxDtoExt
- Returns:
- true if the property order annotation should be rendered
-
varsOpenapiOrder
Returns the properties of the class, in openapi document order.- Specified by:
varsOpenapiOrder
in interfaceCtxDtoExt
- Returns:
- the properties of the class, in openapi document order
-
classModifiers
Returns the optional class modifiers.- Specified by:
classModifiers
in interfaceCtxDtoExt
- Returns:
- the optional class modifiers
-
isRenderSingleLineToString
public boolean isRenderSingleLineToString()Returns true if the toString should create a single-line string.- Specified by:
isRenderSingleLineToString
in interfaceCtxDtoExt
- Returns:
- true if the toString should create a single-line string
-
isRenderToStringHelper
public boolean isRenderToStringHelper()Returns true if the toString indentation helper method should be rendered.- Specified by:
isRenderToStringHelper
in interfaceCtxDtoExt
- Returns:
- true if the toString indentation helper method should be rendered
-
isRecordCanonicalConstructor
public boolean isRecordCanonicalConstructor()Returns true if a canonical constructor should be added to the record.- Specified by:
isRecordCanonicalConstructor
in interfaceCtxDtoExt
- Returns:
- true if a canonical constructor should be added to the record
-
isRecordBuilder
public boolean isRecordBuilder()Returns true if a builder should be added to the record.- Specified by:
isRecordBuilder
in interfaceCtxDtoExt
- Returns:
- true if a builder should be added to the record
-
isJspecify
public boolean isJspecify()Returns true if jspecify Nullable annotations should be used.- Specified by:
isJspecify
in interfaceCtxDtoExt
- Returns:
- true if jspecify Nullable annotations should be used
-
isJspecifyNullUnmarked
public boolean isJspecifyNullUnmarked()Returns true if type is jspecify NullUnmarked - note, not the opposite of isJspecify.- Specified by:
isJspecifyNullUnmarked
in interfaceCtxDtoExt
- Returns:
- true if type is jspecify NullUnmarked - note, not the opposite of isJspecify
-
withJacksonJsonSerializeOptions
Copy the current immutable object by setting a present value for the optionaljacksonJsonSerializeOptions
attribute.- Parameters:
value
- The value for jacksonJsonSerializeOptions- Returns:
- A modified copy or
this
if not changed
-
withJacksonJsonSerializeOptions
Copy the current immutable object by setting an optional value for thejacksonJsonSerializeOptions
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for jacksonJsonSerializeOptions- Returns:
- A modified copy or
this
if not changed
-
withCustomLocalDateDeserializer
Copy the current immutable object by setting a present value for the optionalcustomLocalDateDeserializer
attribute.- Parameters:
value
- The value for customLocalDateDeserializer- Returns:
- A modified copy or
this
if not changed
-
withCustomLocalDateDeserializer
Copy the current immutable object by setting an optional value for thecustomLocalDateDeserializer
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for customLocalDateDeserializer- Returns:
- A modified copy or
this
if not changed
-
withCustomLocalDateSerializer
Copy the current immutable object by setting a present value for the optionalcustomLocalDateSerializer
attribute.- Parameters:
value
- The value for customLocalDateSerializer- Returns:
- A modified copy or
this
if not changed
-
withCustomLocalDateSerializer
Copy the current immutable object by setting an optional value for thecustomLocalDateSerializer
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for customLocalDateSerializer- Returns:
- A modified copy or
this
if not changed
-
withCustomOffsetDateTimeDeserializer
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeDeserializer
attribute.- Parameters:
value
- The value for customOffsetDateTimeDeserializer- Returns:
- A modified copy or
this
if not changed
-
withCustomOffsetDateTimeDeserializer
Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeDeserializer
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for customOffsetDateTimeDeserializer- Returns:
- A modified copy or
this
if not changed
-
withCustomOffsetDateTimeSerializer
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeSerializer
attribute.- Parameters:
value
- The value for customOffsetDateTimeSerializer- Returns:
- A modified copy or
this
if not changed
-
withCustomOffsetDateTimeSerializer
Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeSerializer
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for customOffsetDateTimeSerializer- Returns:
- A modified copy or
this
if not changed
-
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
-
withSchemaOptions
Copy the current immutable object by setting a value for theschemaOptions
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for schemaOptions (can benull
)- Returns:
- A modified copy or the
this
object
-
withImplementsInterfaces
Copy the current immutable object by setting a present value for the optionalimplementsInterfaces
attribute.- Parameters:
value
- The value for implementsInterfaces- Returns:
- A modified copy or
this
if not changed
-
withImplementsInterfaces
Copy the current immutable object by setting an optional value for theimplementsInterfaces
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for implementsInterfaces- Returns:
- A modified copy or
this
if not changed
-
withIsEqualsPrimitive
Copy the current immutable object by setting a value for theisEqualsPrimitive
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isEqualsPrimitive- Returns:
- A modified copy or the
this
object
-
withIsEnumUnknownDefault
Copy the current immutable object by setting a value for theisEnumUnknownDefault
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isEnumUnknownDefault- Returns:
- A modified copy or the
this
object
-
withQuarkusRegisterForReflection
Copy the current immutable object by setting a value for thequarkusRegisterForReflection
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for quarkusRegisterForReflection- Returns:
- A modified copy or the
this
object
-
withIsRenderPropertyOrderAnnotation
Copy the current immutable object by setting a value for theisRenderPropertyOrderAnnotation
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRenderPropertyOrderAnnotation- Returns:
- A modified copy or the
this
object
-
withVarsOpenapiOrder
Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withVarsOpenapiOrder
Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of varsOpenapiOrder elements to set- Returns:
- A modified copy or
this
if not changed
-
withClassModifiers
Copy the current immutable object by setting a present value for the optionalclassModifiers
attribute.- Parameters:
value
- The value for classModifiers- Returns:
- A modified copy or
this
if not changed
-
withClassModifiers
Copy the current immutable object by setting an optional value for theclassModifiers
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for classModifiers- Returns:
- A modified copy or
this
if not changed
-
withIsRenderSingleLineToString
Copy the current immutable object by setting a value for theisRenderSingleLineToString
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRenderSingleLineToString- Returns:
- A modified copy or the
this
object
-
withIsRenderToStringHelper
Copy the current immutable object by setting a value for theisRenderToStringHelper
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRenderToStringHelper- Returns:
- A modified copy or the
this
object
-
withIsRecordCanonicalConstructor
Copy the current immutable object by setting a value for theisRecordCanonicalConstructor
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRecordCanonicalConstructor- Returns:
- A modified copy or the
this
object
-
withIsRecordBuilder
Copy the current immutable object by setting a value for theisRecordBuilder
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isRecordBuilder- Returns:
- A modified copy or the
this
object
-
withIsJspecify
Copy the current immutable object by setting a value for theisJspecify
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isJspecify- Returns:
- A modified copy or the
this
object
-
withIsJspecifyNullUnmarked
Copy the current immutable object by setting a value for theisJspecifyNullUnmarked
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for isJspecifyNullUnmarked- Returns:
- A modified copy or the
this
object
-
equals
This instance is equal to all instances ofImmutableCtxDtoExt
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:jacksonJsonSerializeOptions
,customLocalDateDeserializer
,customLocalDateSerializer
,customOffsetDateTimeDeserializer
,customOffsetDateTimeSerializer
,jsonb
,schemaOptions
,implementsInterfaces
,isEqualsPrimitive
,isEnumUnknownDefault
,quarkusRegisterForReflection
,isRenderPropertyOrderAnnotation
,varsOpenapiOrder
,classModifiers
,isRenderSingleLineToString
,isRenderToStringHelper
,isRecordCanonicalConstructor
,isRecordBuilder
,isJspecify
,isJspecifyNullUnmarked
. -
toString
Prints the immutable valueCtxDtoExt
with attribute values. -
copyOf
Creates an immutable copy of aCtxDtoExt
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 CtxDtoExt instance
-
builder
Creates a builder forImmutableCtxDtoExt
.ImmutableCtxDtoExt.builder() .jacksonJsonSerializeOptions(Optional<String>) // optional
jacksonJsonSerializeOptions
.customLocalDateDeserializer(Optional<String>) // optionalcustomLocalDateDeserializer
.customLocalDateSerializer(Optional<String>) // optionalcustomLocalDateSerializer
.customOffsetDateTimeDeserializer(Optional<String>) // optionalcustomOffsetDateTimeDeserializer
.customOffsetDateTimeSerializer(Optional<String>) // optionalcustomOffsetDateTimeSerializer
.jsonb(boolean) // requiredjsonb
.schemaOptions(String | null) // nullableschemaOptions
.implementsInterfaces(Optional<String>) // optionalimplementsInterfaces
.isEqualsPrimitive(boolean) // requiredisEqualsPrimitive
.isEnumUnknownDefault(boolean) // requiredisEnumUnknownDefault
.quarkusRegisterForReflection(boolean) // requiredquarkusRegisterForReflection
.isRenderPropertyOrderAnnotation(boolean) // requiredisRenderPropertyOrderAnnotation
.addVarsOpenapiOrder|addAllVarsOpenapiOrder(dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxProperty) //varsOpenapiOrder
elements .classModifiers(Optional<String>) // optionalclassModifiers
.isRenderSingleLineToString(boolean) // requiredisRenderSingleLineToString
.isRenderToStringHelper(boolean) // requiredisRenderToStringHelper
.isRecordCanonicalConstructor(boolean) // requiredisRecordCanonicalConstructor
.isRecordBuilder(boolean) // requiredisRecordBuilder
.isJspecify(boolean) // requiredisJspecify
.isJspecifyNullUnmarked(boolean) // requiredisJspecifyNullUnmarked
.build();- Returns:
- A new ImmutableCtxDtoExt builder
-