Package io.dialob.program.expr.arith
Class ImmutableConcatOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableConcatOperator
-
- All Implemented Interfaces:
ConcatOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableConcatOperator extends Object implements ConcatOperator
Immutable implementation ofConcatOperator.Use the builder to create immutable instances:
ImmutableConcatOperator.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableConcatOperator.BuilderBuilds instances of typeImmutableConcatOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableConcatOperator.Builderbuilder()Creates a builder forImmutableConcatOperator.static ImmutableConcatOperatorcopyOf(ConcatOperator instance)Creates an immutable copy of aConcatOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableConcatOperatorthat have equal attribute values.com.google.common.collect.ImmutableList<Expression>getExpressions()inthashCode()Computes a hash code from attributes:expressions.StringtoString()Prints the immutable valueConcatOperatorwith attribute values.ImmutableConcatOperatorwithExpressions(Expression... elements)Copy the current immutable object with elements that replace the content ofexpressions.ImmutableConcatOperatorwithExpressions(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, wait
-
Methods inherited from interface io.dialob.program.expr.arith.ConcatOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getExpressions
public com.google.common.collect.ImmutableList<Expression> getExpressions()
- Specified by:
getExpressionsin interfaceConcatOperator- Returns:
- The value of the
expressionsattribute
-
withExpressions
public final ImmutableConcatOperator withExpressions(Expression... elements)
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
public final ImmutableConcatOperator withExpressions(Iterable<? extends Expression> elements)
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 of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableConcatOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:expressions.
-
toString
public String toString()
Prints the immutable valueConcatOperatorwith attribute values.
-
copyOf
public static ImmutableConcatOperator copyOf(ConcatOperator instance)
Creates an immutable copy of aConcatOperatorvalue. 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 ConcatOperator instance
-
builder
public static ImmutableConcatOperator.Builder builder()
Creates a builder forImmutableConcatOperator.ImmutableConcatOperator.builder() .addExpressions|addAllExpressions(io.dialob.program.model.Expression) //expressionselements .build();- Returns:
- A new ImmutableConcatOperator builder
-
-