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