@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDocumentationSpace extends DocumentationSpace
DocumentationSpace
.
Use the builder to create immutable instances:
ImmutableDocumentationSpace.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDocumentationSpace.Builder
Builds instances of type
ImmutableDocumentationSpace . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDocumentationSpace.Builder |
builder()
Creates a builder for
ImmutableDocumentationSpace . |
static ImmutableDocumentationSpace |
copyOf(DocumentationSpace instance)
Creates an immutable copy of a
DocumentationSpace value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDocumentationSpace that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
key , name . |
String |
key() |
String |
name() |
String |
toString()
Prints the immutable value
DocumentationSpace with attribute values. |
ImmutableDocumentationSpace |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableDocumentationSpace |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String key()
key
in class DocumentationSpace
key
attributepublic String name()
name
in class DocumentationSpace
name
attributepublic final ImmutableDocumentationSpace withKey(String value)
key
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for keythis
objectpublic final ImmutableDocumentationSpace withName(String value)
name
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for namethis
objectpublic boolean equals(@Nullable Object another)
ImmutableDocumentationSpace
that have equal attribute values.public int hashCode()
key
, name
.public String toString()
DocumentationSpace
with attribute values.public static ImmutableDocumentationSpace copyOf(DocumentationSpace instance)
DocumentationSpace
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableDocumentationSpace.Builder builder()
ImmutableDocumentationSpace
.
ImmutableDocumentationSpace.builder() .setKey(String) // requiredkey
.setName(String) // requiredname
.build();
Copyright © 2024 Atlassian. All rights reserved.