Class ImmutableProgramMessage
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableProgramMessage
- All Implemented Interfaces:
ProgramEnvir.ProgramMessage
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableProgramMessage
extends Object
implements ProgramEnvir.ProgramMessage
Immutable implementation of
ProgramEnvir.ProgramMessage.
Use the builder to create immutable instances:
ImmutableProgramMessage.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableProgramMessage. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableProgramMessage.static ImmutableProgramMessagecopyOf(ProgramEnvir.ProgramMessage instance) Creates an immutable copy of aProgramEnvir.ProgramMessagevalue.booleanThis instance is equal to all instances ofImmutableProgramMessagethat have equal attribute values.getId()getMsg()getRow()inthashCode()Computes a hash code from attributes:id,msg,row,column,exception.toString()Prints the immutable valueProgramMessagewith attribute values.final ImmutableProgramMessagewithColumn(Integer value) Copy the current immutable object by setting a value for thecolumnattribute.final ImmutableProgramMessagewithException(Exception value) Copy the current immutable object by setting a value for theexceptionattribute.final ImmutableProgramMessageCopy the current immutable object by setting a value for theidattribute.final ImmutableProgramMessageCopy the current immutable object by setting a value for themsgattribute.final ImmutableProgramMessageCopy the current immutable object by setting a value for therowattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceProgramEnvir.ProgramMessage- Returns:
- The value of the
idattribute
-
getMsg
- Specified by:
getMsgin interfaceProgramEnvir.ProgramMessage- Returns:
- The value of the
msgattribute
-
getRow
- Specified by:
getRowin interfaceProgramEnvir.ProgramMessage- Returns:
- The value of the
rowattribute
-
getColumn
- Specified by:
getColumnin interfaceProgramEnvir.ProgramMessage- Returns:
- The value of the
columnattribute
-
getException
- Specified by:
getExceptionin interfaceProgramEnvir.ProgramMessage- Returns:
- The value of the
exceptionattribute
-
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
-
withMsg
Copy the current immutable object by setting a value for themsgattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for msg- Returns:
- A modified copy of the
thisobject
-
withRow
Copy the current immutable object by setting a value for therowattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for row (can benull)- Returns:
- A modified copy of the
thisobject
-
withColumn
Copy the current immutable object by setting a value for thecolumnattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for column (can benull)- Returns:
- A modified copy of the
thisobject
-
withException
Copy the current immutable object by setting a value for theexceptionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for exception (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableProgramMessagethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,msg,row,column,exception. -
toString
Prints the immutable valueProgramMessagewith attribute values. -
copyOf
Creates an immutable copy of aProgramEnvir.ProgramMessagevalue. 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 ProgramMessage instance
-
builder
Creates a builder forImmutableProgramMessage.ImmutableProgramMessage.builder() .id(String) // requiredid.msg(String) // requiredmsg.row(Integer | null) // nullablerow.column(Integer | null) // nullablecolumn.exception(Exception | null) // nullableexception.build();- Returns:
- A new ImmutableProgramMessage builder
-