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 classBuilds instances of typeImmutableInsightVersion. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableInsightVersion.static ImmutableInsightVersioncopyOf(InsightVersion instance) Creates an immutable copy of aInsightVersionvalue.booleanThis instance is equal to all instances ofImmutableInsightVersionthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,projectId,name.id()name()toString()Prints the immutable valueInsightVersionwith attribute values.final ImmutableInsightVersionCopy the current immutable object by setting a value for theidattribute.final ImmutableInsightVersionCopy the current immutable object by setting a value for thenameattribute.final ImmutableInsightVersionwithProjectId(Long value) Copy the current immutable object by setting a value for theprojectIdattribute.
-
Method Details
-
id
- Specified by:
idin classInsightVersion- Returns:
- The value of the
idattribute
-
projectId
- Specified by:
projectIdin classInsightVersion- Returns:
- The value of the
projectIdattribute
-
name
- Specified by:
namein classInsightVersion- Returns:
- The value of the
nameattribute
-
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
-
withProjectId
Copy the current immutable object by setting a value for theprojectIdattribute. 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
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
-
equals
This instance is equal to all instances ofImmutableInsightVersionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,projectId,name. -
toString
Prints the immutable valueInsightVersionwith attribute values. -
copyOf
Creates an immutable copy of aInsightVersionvalue. 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) // requiredid.setProjectId(Long) // requiredprojectId.setName(String) // requiredname.build();- Returns:
- A new ImmutableInsightVersion builder
-