Class ImmutableDecisionLogEntry
java.lang.Object
io.resys.hdes.client.api.programs.ImmutableDecisionLogEntry
- All Implemented Interfaces:
DecisionProgram.DecisionLogEntry,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDecisionLogEntry
extends Object
implements DecisionProgram.DecisionLogEntry
Immutable implementation of
DecisionProgram.DecisionLogEntry.
Use the builder to create immutable instances:
ImmutableDecisionLogEntry.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDecisionLogEntry. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDecisionLogEntry.static ImmutableDecisionLogEntrycopyOf(DecisionProgram.DecisionLogEntry instance) Creates an immutable copy of aDecisionProgram.DecisionLogEntryvalue.booleanThis instance is equal to all instances ofImmutableDecisionLogEntrythat have equal attribute values.getMatch()inthashCode()Computes a hash code from attributes:match,headerType,expression,usedValue.toString()Prints the immutable valueDecisionLogEntrywith attribute values.withExpression(String value) Copy the current immutable object by setting a value for theexpressionattribute.withHeaderType(TypeDef value) Copy the current immutable object by setting a value for theheaderTypeattribute.Copy the current immutable object by setting a value for thematchattribute.withUsedValue(Serializable value) Copy the current immutable object by setting a value for theusedValueattribute.
-
Method Details
-
getMatch
- Specified by:
getMatchin interfaceDecisionProgram.DecisionLogEntry- Returns:
- The value of the
matchattribute
-
getHeaderType
- Specified by:
getHeaderTypein interfaceDecisionProgram.DecisionLogEntry- Returns:
- The value of the
headerTypeattribute
-
getExpression
- Specified by:
getExpressionin interfaceDecisionProgram.DecisionLogEntry- Returns:
- The value of the
expressionattribute
-
getUsedValue
- Specified by:
getUsedValuein interfaceDecisionProgram.DecisionLogEntry- Returns:
- The value of the
usedValueattribute
-
withMatch
Copy the current immutable object by setting a value for thematchattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for match- Returns:
- A modified copy of the
thisobject
-
withHeaderType
Copy the current immutable object by setting a value for theheaderTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for headerType- Returns:
- A modified copy of the
thisobject
-
withExpression
Copy the current immutable object by setting a value for theexpressionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for expression- Returns:
- A modified copy of the
thisobject
-
withUsedValue
Copy the current immutable object by setting a value for theusedValueattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usedValue (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableDecisionLogEntrythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:match,headerType,expression,usedValue. -
toString
Prints the immutable valueDecisionLogEntrywith attribute values. -
copyOf
Creates an immutable copy of aDecisionProgram.DecisionLogEntryvalue. 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 DecisionLogEntry instance
-
builder
Creates a builder forImmutableDecisionLogEntry.ImmutableDecisionLogEntry.builder() .match(Boolean) // requiredmatch.headerType(io.resys.hdes.client.api.ast.TypeDef) // requiredheaderType.expression(String) // requiredexpression.usedValue(java.io.Serializable | null) // nullableusedValue.build();- Returns:
- A new ImmutableDecisionLogEntry builder
-