Package io.riada.insight.model
Class ImmutableDocumentationProvider
java.lang.Object
io.riada.insight.model.DocumentationProvider
io.riada.insight.model.ImmutableDocumentationProvider
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDocumentationProvider
extends DocumentationProvider
Immutable implementation of
DocumentationProvider.
Use the builder to create immutable instances:
ImmutableDocumentationProvider.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDocumentationProvider. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDocumentationProvider.copyOf(DocumentationProvider instance) Creates an immutable copy of aDocumentationProvidervalue.booleanThis instance is equal to all instances ofImmutableDocumentationProviderthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name,uri.id()name()toString()Prints the immutable valueDocumentationProviderwith attribute values.uri()Copy the current immutable object by setting a value for theidattribute.Copy the current immutable object by setting a value for thenameattribute.Copy the current immutable object by setting a value for theuriattribute.
-
Method Details
-
id
- Specified by:
idin classDocumentationProvider- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein classDocumentationProvider- Returns:
- The value of the
nameattribute
-
uri
- Specified by:
uriin classDocumentationProvider- Returns:
- The value of the
uriattribute
-
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
-
withName
Copy the current immutable object by setting a value for thenameattribute. 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
thisobject
-
withUri
Copy the current immutable object by setting a value for theuriattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uri- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDocumentationProviderthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,uri. -
toString
Prints the immutable valueDocumentationProviderwith attribute values. -
copyOf
Creates an immutable copy of aDocumentationProvidervalue. 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 DocumentationProvider instance
-
builder
Creates a builder forImmutableDocumentationProvider.ImmutableDocumentationProvider.builder() .setId(String) // requiredid.setName(String) // requiredname.setUri(String) // requireduri.build();- Returns:
- A new ImmutableDocumentationProvider builder
-