Package io.dialob.program.expr.arith
Class ImmutableLanguageExpression
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableLanguageExpression
-
- All Implemented Interfaces:
LanguageExpression,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLanguageExpression extends Object implements LanguageExpression
Immutable implementation ofLanguageExpression.Use the builder to create immutable instances:
ImmutableLanguageExpression.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableLanguageExpression.BuilderBuilds instances of typeImmutableLanguageExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableLanguageExpression.Builderbuilder()Creates a builder forImmutableLanguageExpression.static ImmutableLanguageExpressioncopyOf(LanguageExpression instance)Creates an immutable copy of aLanguageExpressionvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableLanguageExpressionthat have equal attribute values.inthashCode()Returns a constant hash code value.StringtoString()Prints the immutable valueLanguageExpression.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.LanguageExpression
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableLanguageExpressionthat have equal attribute values.
-
hashCode
public int hashCode()
Returns a constant hash code value.
-
toString
public String toString()
Prints the immutable valueLanguageExpression.
-
copyOf
public static ImmutableLanguageExpression copyOf(LanguageExpression instance)
Creates an immutable copy of aLanguageExpressionvalue. 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 LanguageExpression instance
-
builder
public static ImmutableLanguageExpression.Builder builder()
Creates a builder forImmutableLanguageExpression.ImmutableLanguageExpression.builder() .build();- Returns:
- A new ImmutableLanguageExpression builder
-
-