Class ImmutableDateMinusDateOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableDateMinusDateOperator
- All Implemented Interfaces:
DateMinusDateOperator,InfixOperator,Expression,Serializable
@Generated(from="DateMinusDateOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDateMinusDateOperator
extends Object
implements DateMinusDateOperator
Immutable implementation of
DateMinusDateOperator.
Use the builder to create immutable instances:
ImmutableDateMinusDateOperator.builder().
Use the static factory method to create immutable instances:
ImmutableDateMinusDateOperator.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDateMinusDateOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDateMinusDateOperator.copyOf(DateMinusDateOperator instance) Creates an immutable copy of aDateMinusDateOperatorvalue.booleanThis instance is equal to all instances ofImmutableDateMinusDateOperatorthat have equal attribute values.getLhs()getRhs()inthashCode()Computes a hash code from attributes:lhs,rhs.of(Expression lhs, Expression rhs) Construct a new immutableDateMinusDateOperatorinstance.toString()Prints the immutable valueDateMinusDateOperatorwith attribute values.withLhs(Expression value) Copy the current immutable object by setting a value for thelhsattribute.withRhs(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, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.DateMinusDateOperator
eval, getValueTypeMethods inherited from interface io.dialob.session.engine.program.expr.arith.InfixOperator
getEvalRequiredConditions
-
Method Details
-
getLhs
- Specified by:
getLhsin interfaceInfixOperator- Returns:
- left hand side expression of operator
-
getRhs
- Specified by:
getRhsin interfaceInfixOperator- Returns:
- right hand side expression of operator
-
withLhs
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 or the
thisobject
-
withRhs
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 or the
thisobject
-
equals
This instance is equal to all instances ofImmutableDateMinusDateOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:lhs,rhs. -
toString
Prints the immutable valueDateMinusDateOperatorwith attribute values. -
of
Construct a new immutableDateMinusDateOperatorinstance.- Parameters:
lhs- The value for thelhsattributerhs- The value for therhsattribute- Returns:
- An immutable DateMinusDateOperator instance
-
copyOf
Creates an immutable copy of aDateMinusDateOperatorvalue. 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 DateMinusDateOperator instance
-
builder
Creates a builder forImmutableDateMinusDateOperator.ImmutableDateMinusDateOperator.builder() .lhs(io.dialob.session.engine.program.model.Expression) // requiredlhs.rhs(io.dialob.session.engine.program.model.Expression) // requiredrhs.build();- Returns:
- A new ImmutableDateMinusDateOperator builder
-