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