Class ImmutableDecisionRowReturns
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableDecisionRowReturns
- All Implemented Interfaces:
DecisionProgram.DecisionRowReturns,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDecisionRowReturns
extends Object
implements DecisionProgram.DecisionRowReturns
Immutable implementation of
DecisionProgram.DecisionRowReturns.
Use the builder to create immutable instances:
ImmutableDecisionRowReturns.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDecisionRowReturns. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDecisionRowReturns.static ImmutableDecisionRowReturnscopyOf(DecisionProgram.DecisionRowReturns instance) Creates an immutable copy of aDecisionProgram.DecisionRowReturnsvalue.booleanThis instance is equal to all instances ofImmutableDecisionRowReturnsthat have equal attribute values.getKey()getValue()inthashCode()Computes a hash code from attributes:key,value.toString()Prints the immutable valueDecisionRowReturnswith attribute values.Copy the current immutable object by setting a value for thekeyattribute.withValue(Serializable value) Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceDecisionProgram.DecisionRowReturns- Returns:
- The value of the
keyattribute
-
getValue
- Specified by:
getValuein interfaceDecisionProgram.DecisionRowReturns- Returns:
- The value of the
valueattribute
-
withKey
Copy the current immutable object by setting a value for thekeyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy of the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDecisionRowReturnsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:key,value. -
toString
Prints the immutable valueDecisionRowReturnswith attribute values. -
copyOf
Creates an immutable copy of aDecisionProgram.DecisionRowReturnsvalue. 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 DecisionRowReturns instance
-
builder
Creates a builder forImmutableDecisionRowReturns.ImmutableDecisionRowReturns.builder() .key(io.resys.hdes.client.api.ast.TypeDef) // requiredkey.value(java.io.Serializable) // requiredvalue.build();- Returns:
- A new ImmutableDecisionRowReturns builder
-