Package io.riada.insight.model
Class ImmutableDocumentationSpace
java.lang.Object
io.riada.insight.model.DocumentationSpace
io.riada.insight.model.ImmutableDocumentationSpace
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDocumentationSpace
extends DocumentationSpace
Immutable implementation of
DocumentationSpace
.
Use the builder to create immutable instances:
ImmutableDocumentationSpace.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDocumentationSpace
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDocumentationSpace
.static ImmutableDocumentationSpace
copyOf
(DocumentationSpace instance) Creates an immutable copy of aDocumentationSpace
value.boolean
This instance is equal to all instances ofImmutableDocumentationSpace
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:key
,name
.key()
name()
toString()
Prints the immutable valueDocumentationSpace
with attribute values.Copy the current immutable object by setting a value for thekey
attribute.Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
key
- Specified by:
key
in classDocumentationSpace
- Returns:
- The value of the
key
attribute
-
name
- Specified by:
name
in classDocumentationSpace
- Returns:
- The value of the
name
attribute
-
withKey
Copy the current immutable object by setting a value for thekey
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for key- Returns:
- A modified copy of the
this
object
-
withName
Copy the current immutable object by setting a value for thename
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for name- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableDocumentationSpace
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:key
,name
. -
toString
Prints the immutable valueDocumentationSpace
with attribute values. -
copyOf
Creates an immutable copy of aDocumentationSpace
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 DocumentationSpace instance
-
builder
Creates a builder forImmutableDocumentationSpace
.ImmutableDocumentationSpace.builder() .setKey(String) // required
key
.setName(String) // requiredname
.build();- Returns:
- A new ImmutableDocumentationSpace builder
-