Class ImmutableExpressionList
java.lang.Object
io.dialob.session.engine.program.expr.ImmutableExpressionList
- All Implemented Interfaces:
ExpressionList,Expression,Serializable
@Generated(from="ExpressionList",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableExpressionList
extends Object
implements ExpressionList
Immutable implementation of
ExpressionList.
Use the builder to create immutable instances:
ImmutableExpressionList.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableExpressionList. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableExpressionList.static ImmutableExpressionListcopyOf(ExpressionList instance) Creates an immutable copy of aExpressionListvalue.booleanThis instance is equal to all instances ofImmutableExpressionListthat have equal attribute values.com.google.common.collect.ImmutableList<Expression> inthashCode()Computes a hash code from attributes:expressions.toString()Prints the immutable valueExpressionListwith attribute values.final ImmutableExpressionListwithExpressions(Expression... elements) Copy the current immutable object with elements that replace the content ofexpressions.final ImmutableExpressionListwithExpressions(Iterable<? extends Expression> elements) Copy the current immutable object with elements that replace the content ofexpressions.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.program.expr.ExpressionList
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getExpressions
- Specified by:
getExpressionsin interfaceExpressionList- Returns:
- The value of the
expressionsattribute
-
withExpressions
Copy the current immutable object with elements that replace the content ofexpressions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExpressions
Copy the current immutable object with elements that replace the content ofexpressions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of expressions elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableExpressionListthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:expressions. -
toString
Prints the immutable valueExpressionListwith attribute values. -
copyOf
Creates an immutable copy of aExpressionListvalue. 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 ExpressionList instance
-
builder
Creates a builder forImmutableExpressionList.ImmutableExpressionList.builder() .addExpressions|addAllExpressions(io.dialob.session.engine.program.model.Expression) //expressionselements .build();- Returns:
- A new ImmutableExpressionList builder
-