Class ImmutableCollectRowFieldsOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableCollectRowFieldsOperator
- All Implemented Interfaces:
CollectRowFieldsOperator,Expression,Serializable
@Generated(from="CollectRowFieldsOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableCollectRowFieldsOperator
extends Object
implements CollectRowFieldsOperator
Immutable implementation of
CollectRowFieldsOperator.
Use the builder to create immutable instances:
ImmutableCollectRowFieldsOperator.builder().
Use the static factory method to create immutable instances:
ImmutableCollectRowFieldsOperator.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableCollectRowFieldsOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableCollectRowFieldsOperator.copyOf(CollectRowFieldsOperator instance) Creates an immutable copy of aCollectRowFieldsOperatorvalue.booleanThis instance is equal to all instances ofImmutableCollectRowFieldsOperatorthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:itemId,type.Construct a new immutableCollectRowFieldsOperatorinstance.toString()Prints the immutable valueCollectRowFieldsOperatorwith attribute values.withItemId(ItemId value) Copy the current immutable object by setting a value for theitemIdattribute.Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.CollectRowFieldsOperator
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getItemId
- Specified by:
getItemIdin interfaceCollectRowFieldsOperator- Returns:
- The value of the
itemIdattribute
-
getType
- Specified by:
getTypein interfaceCollectRowFieldsOperator- Returns:
- The value of the
typeattribute
-
withItemId
Copy the current immutable object by setting a value for theitemIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemId- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableCollectRowFieldsOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:itemId,type. -
toString
Prints the immutable valueCollectRowFieldsOperatorwith attribute values. -
of
Construct a new immutableCollectRowFieldsOperatorinstance.- Parameters:
itemId- The value for theitemIdattributetype- The value for thetypeattribute- Returns:
- An immutable CollectRowFieldsOperator instance
-
copyOf
Creates an immutable copy of aCollectRowFieldsOperatorvalue. 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 CollectRowFieldsOperator instance
-
builder
Creates a builder forImmutableCollectRowFieldsOperator.ImmutableCollectRowFieldsOperator.builder() .itemId(io.dialob.session.engine.session.model.ItemId) // requireditemId.type(io.dialob.rule.parser.api.ValueType) // requiredtype.build();- Returns:
- A new ImmutableCollectRowFieldsOperator builder
-