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 classBuilds instances of typeImmutableInsightProject. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableInsightProject.static ImmutableInsightProjectcopyOf(InsightProject instance) Creates an immutable copy of aInsightProjectvalue.booleanThis instance is equal to all instances ofImmutableInsightProjectthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,key,name.id()key()name()toString()Prints the immutable valueInsightProjectwith attribute values.final ImmutableInsightProjectCopy the current immutable object by setting a value for theidattribute.final ImmutableInsightProjectCopy the current immutable object by setting a value for thekeyattribute.final ImmutableInsightProjectCopy the current immutable object by setting a value for thenameattribute.
-
Method Details
-
id
- Specified by:
idin classInsightProject- Returns:
- The value of the
idattribute
-
key
- Specified by:
keyin classInsightProject- Returns:
- The value of the
keyattribute
-
name
- Specified by:
namein classInsightProject- 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
-
withKey
Copy the current immutable object by setting a value for thekeyattribute. 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
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 ofImmutableInsightProjectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,key,name. -
toString
Prints the immutable valueInsightProjectwith attribute values. -
copyOf
Creates an immutable copy of aInsightProjectvalue. 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) // requiredid.setKey(String) // requiredkey.setName(String) // requiredname.build();- Returns:
- A new ImmutableInsightProject builder
-