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 classBuilds instances of typeImmutableDocumentationPage. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDocumentationPage.static ImmutableDocumentationPagecopyOf(DocumentationPage instance) Creates an immutable copy of aDocumentationPagevalue.booleanThis instance is equal to all instances ofImmutableDocumentationPagethat have equal attribute values.inthashCode()Computes a hash code from attributes:id,title,url,providerId.id()title()toString()Prints the immutable valueDocumentationPagewith attribute values.url()Copy the current immutable object by setting a value for theidattribute.withProviderId(String value) Copy the current immutable object by setting a value for theproviderIdattribute.Copy the current immutable object by setting a value for thetitleattribute.Copy the current immutable object by setting a value for theurlattribute.
-
Method Details
-
id
- Specified by:
idin classDocumentationPage- Returns:
- The value of the
idattribute
-
title
- Specified by:
titlein classDocumentationPage- Returns:
- The value of the
titleattribute
-
url
- Specified by:
urlin classDocumentationPage- Returns:
- The value of the
urlattribute
-
providerId
- Specified by:
providerIdin classDocumentationPage- Returns:
- The value of the
providerIdattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. 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
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. 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
thisobject
-
withUrl
Copy the current immutable object by setting a value for theurlattribute. 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
thisobject
-
withProviderId
Copy the current immutable object by setting a value for theproviderIdattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableDocumentationPagethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,title,url,providerId. -
toString
Prints the immutable valueDocumentationPagewith attribute values. -
copyOf
Creates an immutable copy of aDocumentationPagevalue. 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) // requiredid.setTitle(String) // requiredtitle.setUrl(String) // requiredurl.setProviderId(String) // requiredproviderId.build();- Returns:
- A new ImmutableDocumentationPage builder
-