Package io.riada.insight.model
Class ImmutableDocumentationPage
java.lang.Object
io.riada.insight.model.DocumentationPage
io.riada.insight.model.ImmutableDocumentationPage
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDocumentationPage
extends DocumentationPage
Immutable implementation of
DocumentationPage
.
Use the builder to create immutable instances:
ImmutableDocumentationPage.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDocumentationPage
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDocumentationPage
.static ImmutableDocumentationPage
copyOf
(DocumentationPage instance) Creates an immutable copy of aDocumentationPage
value.boolean
This instance is equal to all instances ofImmutableDocumentationPage
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,title
,url
,providerId
.id()
title()
toString()
Prints the immutable valueDocumentationPage
with attribute values.url()
Copy the current immutable object by setting a value for theid
attribute.withProviderId
(String value) Copy the current immutable object by setting a value for theproviderId
attribute.Copy the current immutable object by setting a value for thetitle
attribute.Copy the current immutable object by setting a value for theurl
attribute.
-
Method Details
-
id
- Specified by:
id
in classDocumentationPage
- Returns:
- The value of the
id
attribute
-
title
- Specified by:
title
in classDocumentationPage
- Returns:
- The value of the
title
attribute
-
url
- Specified by:
url
in classDocumentationPage
- Returns:
- The value of the
url
attribute
-
providerId
- Specified by:
providerId
in classDocumentationPage
- Returns:
- The value of the
providerId
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id- Returns:
- A modified copy of the
this
object
-
withTitle
Copy the current immutable object by setting a value for thetitle
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for title- Returns:
- A modified copy of the
this
object
-
withUrl
Copy the current immutable object by setting a value for theurl
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for url- Returns:
- A modified copy of the
this
object
-
withProviderId
Copy the current immutable object by setting a value for theproviderId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for providerId- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableDocumentationPage
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,title
,url
,providerId
. -
toString
Prints the immutable valueDocumentationPage
with attribute values. -
copyOf
Creates an immutable copy of aDocumentationPage
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 DocumentationPage instance
-
builder
Creates a builder forImmutableDocumentationPage
.ImmutableDocumentationPage.builder() .setId(Long) // required
id
.setTitle(String) // requiredtitle
.setUrl(String) // requiredurl
.setProviderId(String) // requiredproviderId
.build();- Returns:
- A new ImmutableDocumentationPage builder
-