Class ImmutableCtxInterface
java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.tmpl.ImmutableCtxInterface
- All Implemented Interfaces:
CtxInterface
@Generated(from="CtxInterface",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableCtxInterface
extends Object
implements CtxInterface
Immutable implementation of
CtxInterface
.
Use the builder to create immutable instances:
ImmutableCtxInterface.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableCtxInterface
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional application description.appName()
Returns the application name.builder()
Creates a builder forImmutableCtxInterface
.Returns the classname for the class.static ImmutableCtxInterface
copyOf
(CtxInterface instance) Creates an immutable copy of aCtxInterface
value.Returns an optional description of the class.boolean
This instance is equal to all instances ofImmutableCtxInterface
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:appName
,version
,appDescription
,infoEmail
,imports
,description
,packageName
,classname
,generatedAnnotationClass
,generatorClass
,generatedDate
,implementations
,renderSchema
.Returns a string list of implementation DTOs.Returns the optional application contact email.Returns the package name for the class.boolean
Returns true if OpenApi schema information should be rendered.toString()
Prints the immutable valueCtxInterface
with attribute values.version()
Returns the application version.final ImmutableCtxInterface
withAppDescription
(String value) Copy the current immutable object by setting a present value for the optionalappDescription
attribute.final ImmutableCtxInterface
withAppDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for theappDescription
attribute.final ImmutableCtxInterface
withAppName
(String value) Copy the current immutable object by setting a value for theappName
attribute.final ImmutableCtxInterface
withClassname
(String value) Copy the current immutable object by setting a value for theclassname
attribute.final ImmutableCtxInterface
withDescription
(String value) Copy the current immutable object by setting a present value for the optionaldescription
attribute.final ImmutableCtxInterface
withDescription
(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescription
attribute.final ImmutableCtxInterface
Copy the current immutable object by setting a value for thegeneratedAnnotationClass
attribute.final ImmutableCtxInterface
withGeneratedDate
(String value) Copy the current immutable object by setting a present value for the optionalgeneratedDate
attribute.final ImmutableCtxInterface
withGeneratedDate
(Optional<String> optional) Copy the current immutable object by setting an optional value for thegeneratedDate
attribute.final ImmutableCtxInterface
withGeneratorClass
(String value) Copy the current immutable object by setting a value for thegeneratorClass
attribute.final ImmutableCtxInterface
withImplementations
(String value) Copy the current immutable object by setting a value for theimplementations
attribute.final ImmutableCtxInterface
withImports
(SortedSet<String> value) Copy the current immutable object by setting a value for theimports
attribute.final ImmutableCtxInterface
withInfoEmail
(String value) Copy the current immutable object by setting a present value for the optionalinfoEmail
attribute.final ImmutableCtxInterface
withInfoEmail
(Optional<String> optional) Copy the current immutable object by setting an optional value for theinfoEmail
attribute.final ImmutableCtxInterface
withPackageName
(String value) Copy the current immutable object by setting a value for thepackageName
attribute.final ImmutableCtxInterface
withRenderSchema
(boolean value) Copy the current immutable object by setting a value for therenderSchema
attribute.final ImmutableCtxInterface
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.CtxInterface
hasImports
-
Method Details
-
appName
Returns the application name.- Specified by:
appName
in interfaceCtxInterface
- Returns:
- the application name
-
version
Returns the application version.- Specified by:
version
in interfaceCtxInterface
- Returns:
- the application version
-
appDescription
Returns the optional application description.- Specified by:
appDescription
in interfaceCtxInterface
- Returns:
- the optional application description
-
infoEmail
Returns the optional application contact email.- Specified by:
infoEmail
in interfaceCtxInterface
- Returns:
- the optional application contact email
-
getImports
Returns the imports needed in the template.- Specified by:
getImports
in interfaceCtxInterface
- Returns:
- the imports needed in the template
-
description
Returns an optional description of the class.- Specified by:
description
in interfaceCtxInterface
- Returns:
- an optional description of the class
-
packageName
Returns the package name for the class.- Specified by:
packageName
in interfaceCtxInterface
- Returns:
- the package name for the class
-
classname
Returns the classname for the class.- Specified by:
classname
in interfaceCtxInterface
- Returns:
- the classname for the class
-
generatedAnnotationClass
Returns the name of the Generated annotation class.- Specified by:
generatedAnnotationClass
in interfaceCtxInterface
- Returns:
- the name of the Generated annotation class
-
generatorClass
Returns the name of the generator class.- Specified by:
generatorClass
in interfaceCtxInterface
- Returns:
- the name of the generator class
-
generatedDate
Returns the optional date of the generation.- Specified by:
generatedDate
in interfaceCtxInterface
- Returns:
- the optional date of the generation
-
implementations
Returns a string list of implementation DTOs.- Specified by:
implementations
in interfaceCtxInterface
- Returns:
- a string list of implementation DTOs
-
renderSchema
public boolean renderSchema()Returns true if OpenApi schema information should be rendered.- Specified by:
renderSchema
in interfaceCtxInterface
- Returns:
- true if OpenApi schema information should be rendered
-
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
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescription
attribute.- Parameters:
value
- The value for description- Returns:
- A modified copy or
this
if not changed
-
withDescription
Copy the current immutable object by setting an optional value for thedescription
attribute. An equality check is used on inner value to prevent copying of the same value by returningthis
.- Parameters:
optional
- An optional value for description- Returns:
- A modified copy or
this
if not changed
-
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
-
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
-
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
-
withImplementations
Copy the current immutable object by setting a value for theimplementations
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for implementations- Returns:
- A modified copy or the
this
object
-
withRenderSchema
Copy the current immutable object by setting a value for therenderSchema
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for renderSchema- Returns:
- A modified copy or the
this
object
-
equals
This instance is equal to all instances ofImmutableCtxInterface
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:appName
,version
,appDescription
,infoEmail
,imports
,description
,packageName
,classname
,generatedAnnotationClass
,generatorClass
,generatedDate
,implementations
,renderSchema
. -
toString
Prints the immutable valueCtxInterface
with attribute values. -
copyOf
Creates an immutable copy of aCtxInterface
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 CtxInterface instance
-
builder
Creates a builder forImmutableCtxInterface
.ImmutableCtxInterface.builder() .appName(String) // required
appName
.version(String) // requiredversion
.appDescription(Optional<String>) // optionalappDescription
.infoEmail(Optional<String>) // optionalinfoEmail
.imports(SortedSet<String>) // requiredimports
.description(Optional<String>) // optionaldescription
.packageName(String) // requiredpackageName
.classname(String) // requiredclassname
.generatedAnnotationClass(String) // requiredgeneratedAnnotationClass
.generatorClass(String) // requiredgeneratorClass
.generatedDate(Optional<String>) // optionalgeneratedDate
.implementations(String) // requiredimplementations
.renderSchema(boolean) // requiredrenderSchema
.build();- Returns:
- A new ImmutableCtxInterface builder
-