Package io.dialob.program.expr.arith
Class ImmutableTimeMinusDurationOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableTimeMinusDurationOperator
-
- All Implemented Interfaces:
InfixOperator<LocalTime>,TimeMinusDurationOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTimeMinusDurationOperator extends Object implements TimeMinusDurationOperator
Immutable implementation ofTimeMinusDurationOperator.Use the builder to create immutable instances:
ImmutableTimeMinusDurationOperator.builder(). Use the static factory method to create immutable instances:ImmutableTimeMinusDurationOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTimeMinusDurationOperator.BuilderBuilds instances of typeImmutableTimeMinusDurationOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTimeMinusDurationOperator.Builderbuilder()Creates a builder forImmutableTimeMinusDurationOperator.static ImmutableTimeMinusDurationOperatorcopyOf(TimeMinusDurationOperator instance)Creates an immutable copy of aTimeMinusDurationOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableTimeMinusDurationOperatorthat have equal attribute values.ExpressiongetLhs()ExpressiongetRhs()inthashCode()Computes a hash code from attributes:lhs,rhs.static ImmutableTimeMinusDurationOperatorof(Expression lhs, Expression rhs)Construct a new immutableTimeMinusDurationOperatorinstance.StringtoString()Prints the immutable valueTimeMinusDurationOperatorwith attribute values.ImmutableTimeMinusDurationOperatorwithLhs(Expression value)Copy the current immutable object by setting a value for thelhsattribute.ImmutableTimeMinusDurationOperatorwithRhs(Expression value)Copy the current immutable object by setting a value for therhsattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.InfixOperator
getEvalRequiredConditions
-
Methods inherited from interface io.dialob.program.expr.arith.TimeMinusDurationOperator
eval, getValueType
-
-
-
-
Method Detail
-
getLhs
public Expression getLhs()
- Specified by:
getLhsin interfaceInfixOperator<LocalTime>- Returns:
- The value of the
lhsattribute
-
getRhs
public Expression getRhs()
- Specified by:
getRhsin interfaceInfixOperator<LocalTime>- Returns:
- The value of the
rhsattribute
-
withLhs
public final ImmutableTimeMinusDurationOperator withLhs(Expression value)
Copy the current immutable object by setting a value for thelhsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lhs- Returns:
- A modified copy of the
thisobject
-
withRhs
public final ImmutableTimeMinusDurationOperator withRhs(Expression value)
Copy the current immutable object by setting a value for therhsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rhs- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableTimeMinusDurationOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:lhs,rhs.
-
toString
public String toString()
Prints the immutable valueTimeMinusDurationOperatorwith attribute values.
-
of
public static ImmutableTimeMinusDurationOperator of(Expression lhs, Expression rhs)
Construct a new immutableTimeMinusDurationOperatorinstance.- Parameters:
lhs- The value for thelhsattributerhs- The value for therhsattribute- Returns:
- An immutable TimeMinusDurationOperator instance
-
copyOf
public static ImmutableTimeMinusDurationOperator copyOf(TimeMinusDurationOperator instance)
Creates an immutable copy of aTimeMinusDurationOperatorvalue. 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 TimeMinusDurationOperator instance
-
builder
public static ImmutableTimeMinusDurationOperator.Builder builder()
Creates a builder forImmutableTimeMinusDurationOperator.ImmutableTimeMinusDurationOperator.builder() .lhs(io.dialob.program.model.Expression) // requiredlhs.rhs(io.dialob.program.model.Expression) // requiredrhs.build();- Returns:
- A new ImmutableTimeMinusDurationOperator builder
-
-