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 class
Builds instances of typeImmutableDocumentationProvider
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableDocumentationProvider
.copyOf
(DocumentationProvider instance) Creates an immutable copy of aDocumentationProvider
value.boolean
This instance is equal to all instances ofImmutableDocumentationProvider
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,name
,uri
.id()
name()
toString()
Prints the immutable valueDocumentationProvider
with attribute values.uri()
Copy the current immutable object by setting a value for theid
attribute.Copy the current immutable object by setting a value for thename
attribute.Copy the current immutable object by setting a value for theuri
attribute.
-
Method Details
-
id
- Specified by:
id
in classDocumentationProvider
- Returns:
- The value of the
id
attribute
-
name
- Specified by:
name
in classDocumentationProvider
- Returns:
- The value of the
name
attribute
-
uri
- Specified by:
uri
in classDocumentationProvider
- Returns:
- The value of the
uri
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
-
withName
Copy the current immutable object by setting a value for thename
attribute. 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
this
object
-
withUri
Copy the current immutable object by setting a value for theuri
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableDocumentationProvider
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,name
,uri
. -
toString
Prints the immutable valueDocumentationProvider
with attribute values. -
copyOf
Creates an immutable copy of aDocumentationProvider
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 DocumentationProvider instance
-
builder
Creates a builder forImmutableDocumentationProvider
.ImmutableDocumentationProvider.builder() .setId(String) // required
id
.setName(String) // requiredname
.setUri(String) // requireduri
.build();- Returns:
- A new ImmutableDocumentationProvider builder
-