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