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.Builderbuilder()Creates a builder forImmutableCtxDtoExt.Returns the optional class modifiers.static ImmutableCtxDtoExtCreates an immutable copy of aCtxDtoExtvalue.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.booleanThis instance is equal to all instances ofImmutableCtxDtoExtthat have equal attribute values.inthashCode()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.booleanReturns true if enumeration should deserialize unknown input to the last enumeration entry.booleanReturns true if enumeration data type is primitive and can use == for equals.booleanReturns true if jspecify Nullable annotations should be used.booleanReturns true if type is jspecify NullUnmarked - note, not the opposite of isJspecify.booleanReturns true if a builder should be added to the record.booleanReturns true if a canonical constructor should be added to the record.booleanReturns true if the property order annotation should be rendered.booleanReturns true if the toString should create a single-line string.booleanReturns true if the toString indentation helper method should be rendered.Returns optional custom jackson @JsonSerialize options.booleanjsonb()Returns true if rendering for jsonb, false otherwise.booleanReturns true if DTO should render @RegisterForReflection.@Nullable StringReturns schema options, or null.toString()Prints the immutable valueCtxDtoExtwith attribute values.Returns the properties of the class, in openapi document order.final ImmutableCtxDtoExtwithClassModifiers(String value) Copy the current immutable object by setting a present value for the optionalclassModifiersattribute.final ImmutableCtxDtoExtwithClassModifiers(Optional<String> optional) Copy the current immutable object by setting an optional value for theclassModifiersattribute.final ImmutableCtxDtoExtCopy the current immutable object by setting a present value for the optionalcustomLocalDateDeserializerattribute.final ImmutableCtxDtoExtwithCustomLocalDateDeserializer(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomLocalDateDeserializerattribute.final ImmutableCtxDtoExtCopy the current immutable object by setting a present value for the optionalcustomLocalDateSerializerattribute.final ImmutableCtxDtoExtwithCustomLocalDateSerializer(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomLocalDateSerializerattribute.final ImmutableCtxDtoExtCopy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeDeserializerattribute.final ImmutableCtxDtoExtwithCustomOffsetDateTimeDeserializer(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeDeserializerattribute.final ImmutableCtxDtoExtCopy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeSerializerattribute.final ImmutableCtxDtoExtwithCustomOffsetDateTimeSerializer(Optional<String> optional) Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeSerializerattribute.final ImmutableCtxDtoExtwithImplementsInterfaces(String value) Copy the current immutable object by setting a present value for the optionalimplementsInterfacesattribute.final ImmutableCtxDtoExtwithImplementsInterfaces(Optional<String> optional) Copy the current immutable object by setting an optional value for theimplementsInterfacesattribute.final ImmutableCtxDtoExtwithIsEnumUnknownDefault(boolean value) Copy the current immutable object by setting a value for theisEnumUnknownDefaultattribute.final ImmutableCtxDtoExtwithIsEqualsPrimitive(boolean value) Copy the current immutable object by setting a value for theisEqualsPrimitiveattribute.final ImmutableCtxDtoExtwithIsJspecify(boolean value) Copy the current immutable object by setting a value for theisJspecifyattribute.final ImmutableCtxDtoExtwithIsJspecifyNullUnmarked(boolean value) Copy the current immutable object by setting a value for theisJspecifyNullUnmarkedattribute.final ImmutableCtxDtoExtwithIsRecordBuilder(boolean value) Copy the current immutable object by setting a value for theisRecordBuilderattribute.final ImmutableCtxDtoExtwithIsRecordCanonicalConstructor(boolean value) Copy the current immutable object by setting a value for theisRecordCanonicalConstructorattribute.final ImmutableCtxDtoExtwithIsRenderPropertyOrderAnnotation(boolean value) Copy the current immutable object by setting a value for theisRenderPropertyOrderAnnotationattribute.final ImmutableCtxDtoExtwithIsRenderSingleLineToString(boolean value) Copy the current immutable object by setting a value for theisRenderSingleLineToStringattribute.final ImmutableCtxDtoExtwithIsRenderToStringHelper(boolean value) Copy the current immutable object by setting a value for theisRenderToStringHelperattribute.final ImmutableCtxDtoExtCopy the current immutable object by setting a present value for the optionaljacksonJsonSerializeOptionsattribute.final ImmutableCtxDtoExtwithJacksonJsonSerializeOptions(Optional<String> optional) Copy the current immutable object by setting an optional value for thejacksonJsonSerializeOptionsattribute.final ImmutableCtxDtoExtwithJsonb(boolean value) Copy the current immutable object by setting a value for thejsonbattribute.final ImmutableCtxDtoExtwithQuarkusRegisterForReflection(boolean value) Copy the current immutable object by setting a value for thequarkusRegisterForReflectionattribute.final ImmutableCtxDtoExtwithSchemaOptions(@Nullable String value) Copy the current immutable object by setting a value for theschemaOptionsattribute.final ImmutableCtxDtoExtwithVarsOpenapiOrder(CtxProperty... elements) Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder.final ImmutableCtxDtoExtwithVarsOpenapiOrder(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:
jacksonJsonSerializeOptionsin interfaceCtxDtoExt- Returns:
- optional custom jackson @JsonSerialize options
-
customLocalDateDeserializer
Returns the optional name of a custom LocalDateDeserializer.- Specified by:
customLocalDateDeserializerin interfaceCtxDtoExt- Returns:
- the optional name of a custom LocalDateDeserializer
-
customLocalDateSerializer
Returns the optional name of a custom LocalDateSerializer.- Specified by:
customLocalDateSerializerin interfaceCtxDtoExt- Returns:
- the optional name of a custom LocalDateSerializer
-
customOffsetDateTimeDeserializer
Returns the optional name of a custom OffsetDateDeserializer.- Specified by:
customOffsetDateTimeDeserializerin interfaceCtxDtoExt- Returns:
- the optional name of a custom OffsetDateDeserializer
-
customOffsetDateTimeSerializer
Returns the optional name of a custom OffsetDateSerializer.- Specified by:
customOffsetDateTimeSerializerin 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:
schemaOptionsin interfaceCtxDtoExt- Returns:
- schema options, or null
-
implementsInterfaces
Returns an optional string containing the interfaces implemented by this DTO.- Specified by:
implementsInterfacesin 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:
isEqualsPrimitivein 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:
isEnumUnknownDefaultin 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:
quarkusRegisterForReflectionin interfaceCtxDtoExt- Returns:
- true if DTO should render @RegisterForReflection
-
isRenderPropertyOrderAnnotation
public boolean isRenderPropertyOrderAnnotation()Returns true if the property order annotation should be rendered.- Specified by:
isRenderPropertyOrderAnnotationin interfaceCtxDtoExt- Returns:
- true if the property order annotation should be rendered
-
varsOpenapiOrder
Returns the properties of the class, in openapi document order.- Specified by:
varsOpenapiOrderin interfaceCtxDtoExt- Returns:
- the properties of the class, in openapi document order
-
classModifiers
Returns the optional class modifiers.- Specified by:
classModifiersin interfaceCtxDtoExt- Returns:
- the optional class modifiers
-
isRenderSingleLineToString
public boolean isRenderSingleLineToString()Returns true if the toString should create a single-line string.- Specified by:
isRenderSingleLineToStringin 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:
isRenderToStringHelperin 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:
isRecordCanonicalConstructorin 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:
isRecordBuilderin 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:
isJspecifyin 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:
isJspecifyNullUnmarkedin 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 optionaljacksonJsonSerializeOptionsattribute.- Parameters:
value- The value for jacksonJsonSerializeOptions- Returns:
- A modified copy or
thisif not changed
-
withJacksonJsonSerializeOptions
Copy the current immutable object by setting an optional value for thejacksonJsonSerializeOptionsattribute. 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
thisif not changed
-
withCustomLocalDateDeserializer
Copy the current immutable object by setting a present value for the optionalcustomLocalDateDeserializerattribute.- Parameters:
value- The value for customLocalDateDeserializer- Returns:
- A modified copy or
thisif not changed
-
withCustomLocalDateDeserializer
Copy the current immutable object by setting an optional value for thecustomLocalDateDeserializerattribute. 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
thisif not changed
-
withCustomLocalDateSerializer
Copy the current immutable object by setting a present value for the optionalcustomLocalDateSerializerattribute.- Parameters:
value- The value for customLocalDateSerializer- Returns:
- A modified copy or
thisif not changed
-
withCustomLocalDateSerializer
Copy the current immutable object by setting an optional value for thecustomLocalDateSerializerattribute. 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
thisif not changed
-
withCustomOffsetDateTimeDeserializer
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeDeserializerattribute.- Parameters:
value- The value for customOffsetDateTimeDeserializer- Returns:
- A modified copy or
thisif not changed
-
withCustomOffsetDateTimeDeserializer
Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeDeserializerattribute. 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
thisif not changed
-
withCustomOffsetDateTimeSerializer
Copy the current immutable object by setting a present value for the optionalcustomOffsetDateTimeSerializerattribute.- Parameters:
value- The value for customOffsetDateTimeSerializer- Returns:
- A modified copy or
thisif not changed
-
withCustomOffsetDateTimeSerializer
Copy the current immutable object by setting an optional value for thecustomOffsetDateTimeSerializerattribute. 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
thisif not changed
-
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
-
withSchemaOptions
Copy the current immutable object by setting a value for theschemaOptionsattribute. 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
thisobject
-
withImplementsInterfaces
Copy the current immutable object by setting a present value for the optionalimplementsInterfacesattribute.- Parameters:
value- The value for implementsInterfaces- Returns:
- A modified copy or
thisif not changed
-
withImplementsInterfaces
Copy the current immutable object by setting an optional value for theimplementsInterfacesattribute. 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
thisif not changed
-
withIsEqualsPrimitive
Copy the current immutable object by setting a value for theisEqualsPrimitiveattribute. 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
thisobject
-
withIsEnumUnknownDefault
Copy the current immutable object by setting a value for theisEnumUnknownDefaultattribute. 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
thisobject
-
withQuarkusRegisterForReflection
Copy the current immutable object by setting a value for thequarkusRegisterForReflectionattribute. 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
thisobject
-
withIsRenderPropertyOrderAnnotation
Copy the current immutable object by setting a value for theisRenderPropertyOrderAnnotationattribute. 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
thisobject
-
withVarsOpenapiOrder
Copy the current immutable object with elements that replace the content ofvarsOpenapiOrder.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
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
thisif not changed
-
withClassModifiers
Copy the current immutable object by setting a present value for the optionalclassModifiersattribute.- Parameters:
value- The value for classModifiers- Returns:
- A modified copy or
thisif not changed
-
withClassModifiers
Copy the current immutable object by setting an optional value for theclassModifiersattribute. 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
thisif not changed
-
withIsRenderSingleLineToString
Copy the current immutable object by setting a value for theisRenderSingleLineToStringattribute. 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
thisobject
-
withIsRenderToStringHelper
Copy the current immutable object by setting a value for theisRenderToStringHelperattribute. 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
thisobject
-
withIsRecordCanonicalConstructor
Copy the current immutable object by setting a value for theisRecordCanonicalConstructorattribute. 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
thisobject
-
withIsRecordBuilder
Copy the current immutable object by setting a value for theisRecordBuilderattribute. 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
thisobject
-
withIsJspecify
Copy the current immutable object by setting a value for theisJspecifyattribute. 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
thisobject
-
withIsJspecifyNullUnmarked
Copy the current immutable object by setting a value for theisJspecifyNullUnmarkedattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableCtxDtoExtthat 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 valueCtxDtoExtwith attribute values. -
copyOf
Creates an immutable copy of aCtxDtoExtvalue. 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>) // optionaljacksonJsonSerializeOptions.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) //varsOpenapiOrderelements .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
-