Package io.riada.insight.model
Class ImmutableInsightGroup
java.lang.Object
io.riada.insight.model.InsightGroup
io.riada.insight.model.ImmutableInsightGroup
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInsightGroup
extends InsightGroup
Immutable implementation of
InsightGroup
.
Use the builder to create immutable instances:
ImmutableInsightGroup.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInsightGroup
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableInsightGroup
.static ImmutableInsightGroup
copyOf
(InsightGroup instance) Creates an immutable copy of aInsightGroup
value.boolean
This instance is equal to all instances ofImmutableInsightGroup
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:name
.name()
toString()
Prints the immutable valueInsightGroup
with attribute values.final ImmutableInsightGroup
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
name
- Specified by:
name
in classInsightGroup
- Returns:
- The value of the
name
attribute
-
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
-
equals
This instance is equal to all instances ofImmutableInsightGroup
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name
. -
toString
Prints the immutable valueInsightGroup
with attribute values. -
copyOf
Creates an immutable copy of aInsightGroup
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 InsightGroup instance
-
builder
Creates a builder forImmutableInsightGroup
.ImmutableInsightGroup.builder() .setName(String) // required
name
.build();- Returns:
- A new ImmutableInsightGroup builder
-