Class ImmutableConditionalListOperator<T>
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableConditionalListOperator<T>
- All Implemented Interfaces:
ConditionalListOperator<T>,Expression,Serializable
@Generated(from="ConditionalListOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableConditionalListOperator<T>
extends Object
implements ConditionalListOperator<T>
Immutable implementation of
ConditionalListOperator.
Use the builder to create immutable instances:
ImmutableConditionalListOperator.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableConditionalListOperator. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ImmutableConditionalListOperator.Builder<T> builder()Creates a builder forImmutableConditionalListOperator.static <T> ImmutableConditionalListOperator<T> copyOf(ConditionalListOperator<T> instance) Creates an immutable copy of aConditionalListOperatorvalue.booleanThis instance is equal to all instances ofImmutableConditionalListOperatorthat have equal attribute values.com.google.common.collect.ImmutableList<Pair<Expression, T>> getItems()inthashCode()Computes a hash code from attributes:items.toString()Prints the immutable valueConditionalListOperatorwith attribute values.withItems(Pair<Expression, T>... elements) Copy the current immutable object with elements that replace the content ofitems.withItems(Iterable<? extends Pair<Expression, T>> elements) Copy the current immutable object with elements that replace the content ofitems.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.ConditionalListOperator
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getItems
- Specified by:
getItemsin interfaceConditionalListOperator<T>- Returns:
- The value of the
itemsattribute
-
withItems
@SafeVarargs public final ImmutableConditionalListOperator<T> withItems(Pair<Expression, T>... elements) Copy the current immutable object with elements that replace the content ofitems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItems
public final ImmutableConditionalListOperator<T> withItems(Iterable<? extends Pair<Expression, T>> elements) Copy the current immutable object with elements that replace the content ofitems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of items elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableConditionalListOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:items. -
toString
Prints the immutable valueConditionalListOperatorwith attribute values. -
copyOf
Creates an immutable copy of aConditionalListOperatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
T- generic parameter T- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ConditionalListOperator instance
-
builder
Creates a builder forImmutableConditionalListOperator.ImmutableConditionalListOperator.<T>builder() .addItems|addAllItems(io.dialob.session.engine.program.expr.arith.Pair<io.dialob.session.engine.program.model.Expression, T>) //itemselements .build();- Type Parameters:
T- generic parameter T- Returns:
- A new ImmutableConditionalListOperator builder
-