@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDocumentationPage extends DocumentationPage
DocumentationPage
.
Use the builder to create immutable instances:
ImmutableDocumentationPage.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDocumentationPage.Builder
Builds instances of type
ImmutableDocumentationPage . |
Modifier and Type | Method and Description |
---|---|
static ImmutableDocumentationPage.Builder |
builder()
Creates a builder for
ImmutableDocumentationPage . |
static ImmutableDocumentationPage |
copyOf(DocumentationPage instance)
Creates an immutable copy of a
DocumentationPage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDocumentationPage that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id , title , url , providerId . |
Long |
id() |
String |
providerId() |
String |
title() |
String |
toString()
Prints the immutable value
DocumentationPage with attribute values. |
String |
url() |
ImmutableDocumentationPage |
withId(Long value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableDocumentationPage |
withProviderId(String value)
Copy the current immutable object by setting a value for the
providerId attribute. |
ImmutableDocumentationPage |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableDocumentationPage |
withUrl(String value)
Copy the current immutable object by setting a value for the
url attribute. |
public Long id()
id
in class DocumentationPage
id
attributepublic String title()
title
in class DocumentationPage
title
attributepublic String url()
url
in class DocumentationPage
url
attributepublic String providerId()
providerId
in class DocumentationPage
providerId
attributepublic final ImmutableDocumentationPage withId(Long value)
id
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for idthis
objectpublic final ImmutableDocumentationPage withTitle(String value)
title
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for titlethis
objectpublic final ImmutableDocumentationPage withUrl(String value)
url
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for urlthis
objectpublic final ImmutableDocumentationPage withProviderId(String value)
providerId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for providerIdthis
objectpublic boolean equals(@Nullable Object another)
ImmutableDocumentationPage
that have equal attribute values.public int hashCode()
id
, title
, url
, providerId
.public String toString()
DocumentationPage
with attribute values.public static ImmutableDocumentationPage copyOf(DocumentationPage instance)
DocumentationPage
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 ImmutableDocumentationPage.Builder builder()
ImmutableDocumentationPage
.
ImmutableDocumentationPage.builder() .setId(Long) // requiredid
.setTitle(String) // requiredtitle
.setUrl(String) // requiredurl
.setProviderId(String) // requiredproviderId
.build();
Copyright © 2024 Atlassian. All rights reserved.