Package io.riada.insight.model
Class ImmutableInsightProject
java.lang.Object
io.riada.insight.model.InsightProject
io.riada.insight.model.ImmutableInsightProject
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInsightProject
extends InsightProject
Immutable implementation of
InsightProject
.
Use the builder to create immutable instances:
ImmutableInsightProject.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInsightProject
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableInsightProject
.static ImmutableInsightProject
copyOf
(InsightProject instance) Creates an immutable copy of aInsightProject
value.boolean
This instance is equal to all instances ofImmutableInsightProject
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:id
,key
,name
.id()
key()
name()
toString()
Prints the immutable valueInsightProject
with attribute values.final ImmutableInsightProject
Copy the current immutable object by setting a value for theid
attribute.final ImmutableInsightProject
Copy the current immutable object by setting a value for thekey
attribute.final ImmutableInsightProject
Copy the current immutable object by setting a value for thename
attribute.
-
Method Details
-
id
- Specified by:
id
in classInsightProject
- Returns:
- The value of the
id
attribute
-
key
- Specified by:
key
in classInsightProject
- Returns:
- The value of the
key
attribute
-
name
- Specified by:
name
in classInsightProject
- Returns:
- The value of the
name
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
-
withKey
Copy the current immutable object by setting a value for thekey
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for key- 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
-
equals
This instance is equal to all instances ofImmutableInsightProject
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,key
,name
. -
toString
Prints the immutable valueInsightProject
with attribute values. -
copyOf
Creates an immutable copy of aInsightProject
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 InsightProject instance
-
builder
Creates a builder forImmutableInsightProject
.ImmutableInsightProject.builder() .setId(Long) // required
id
.setKey(String) // requiredkey
.setName(String) // requiredname
.build();- Returns:
- A new ImmutableInsightProject builder
-