Class ImmutableGtOperator<T extends Comparable<T>>
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableGtOperator<T>
- All Implemented Interfaces:
AbstractComparableRelationOperator<T>,AbstractLogicalOperator,AbstractRelationOperator<T>,GtOperator<T>,InfixOperator,Expression,Serializable
@Generated(from="GtOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGtOperator<T extends Comparable<T>>
extends Object
implements GtOperator<T>
Immutable implementation of
GtOperator.
Use the builder to create immutable instances:
ImmutableGtOperator.builder().
Use the static factory method to create immutable instances:
ImmutableGtOperator.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classImmutableGtOperator.Builder<T extends Comparable<T>>Builds instances of typeImmutableGtOperator. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
ImmutableGtOperator.Builder<T> builder()Creates a builder forImmutableGtOperator.static <T extends Comparable<T>>
ImmutableGtOperator<T> copyOf(GtOperator<T> instance) Creates an immutable copy of aGtOperatorvalue.booleanThis instance is equal to all instances ofImmutableGtOperatorthat have equal attribute values.getLhs()getRhs()inthashCode()Computes a hash code from attributes:lhs,rhs.static <T extends Comparable<T>>
ImmutableGtOperator<T> of(Expression lhs, Expression rhs) Construct a new immutableGtOperatorinstance.toString()Prints the immutable valueGtOperatorwith attribute values.final ImmutableGtOperator<T> withLhs(Expression value) Copy the current immutable object by setting a value for thelhsattribute.final ImmutableGtOperator<T> 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.AbstractComparableRelationOperator
compareMethods inherited from interface io.dialob.session.engine.program.expr.arith.AbstractLogicalOperator
getValueTypeMethods inherited from interface io.dialob.session.engine.program.expr.arith.AbstractRelationOperator
evalMethods inherited from interface io.dialob.session.engine.program.expr.arith.GtOperator
apply, getOperatorMethods 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 ofImmutableGtOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:lhs,rhs. -
toString
Prints the immutable valueGtOperatorwith attribute values. -
of
Construct a new immutableGtOperatorinstance.- Type Parameters:
T- generic parameter T- Parameters:
lhs- The value for thelhsattributerhs- The value for therhsattribute- Returns:
- An immutable GtOperator instance
-
copyOf
Creates an immutable copy of aGtOperatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
T- generic parameter T- Parameters:
instance- The instance to copy- Returns:
- A copied immutable GtOperator instance
-
builder
Creates a builder forImmutableGtOperator.ImmutableGtOperator.<T>builder() .lhs(io.dialob.session.engine.program.model.Expression) // requiredlhs.rhs(io.dialob.session.engine.program.model.Expression) // requiredrhs.build();- Type Parameters:
T- generic parameter T- Returns:
- A new ImmutableGtOperator builder
-