Class NumericLiteral<N extends java.lang.Number,D extends DataType.NumericType>
- java.lang.Object
-
- com.apple.foundationdb.relational.api.fluentsql.expression.NumericLiteral<N,D>
-
- Type Parameters:
N
- The Java type of the literal.D
- The type of the expression.
- All Implemented Interfaces:
ComparableExpressionTrait<D,Expression<D>>
,Expression<D>
,Literal<N,D>
,NumericExpressionTrait<D>
,ScalarExpression<D>
@Immutable @API(EXPERIMENTAL) public class NumericLiteral<N extends java.lang.Number,D extends DataType.NumericType> extends java.lang.Object implements Literal<N,D>, NumericExpressionTrait<D>
This represents a numeric literal.
-
-
Constructor Summary
Constructors Constructor Description NumericLiteral(D type, N literal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(FluentVisitor<R,C> visitor, C context)
boolean
equals(java.lang.Object o)
D
getType()
N
getValue()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ComparableExpressionTrait
greaterThan, greaterThanOrEquals, greatest, isEqualTo, lessThan, lessThanOrEqual, notEquals
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.NumericExpressionTrait
add, div, mod, mul, sub
-
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ScalarExpression
isNotNull, isNull
-
-
-
-
Method Detail
-
accept
@Nullable public <R,C> R accept(@Nonnull FluentVisitor<R,C> visitor, @Nonnull C context)
- Specified by:
accept
in interfaceExpression<N extends java.lang.Number>
-
getType
@Nonnull public D getType()
- Specified by:
getType
in interfaceComparableExpressionTrait<N extends java.lang.Number,D extends DataType.NumericType>
- Specified by:
getType
in interfaceExpression<N extends java.lang.Number>
- Specified by:
getType
in interfaceNumericExpressionTrait<N extends java.lang.Number>
-
getValue
@Nullable public N getValue()
- Specified by:
getValue
in interfaceLiteral<N extends java.lang.Number,D extends DataType.NumericType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-