Package com.querydsl.core.types.dsl
Class NumberOperation<T extends Number & Comparable<?>>
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.core.types.dsl.ComparableExpressionBase<T>
com.querydsl.core.types.dsl.NumberExpression<T>
com.querydsl.core.types.dsl.NumberOperation<T>
- Type Parameters:
T- expression type
- All Implemented Interfaces:
Expression<T>,Operation<T>,Serializable
public class NumberOperation<T extends Number & Comparable<?>>
extends NumberExpression<T>
implements Operation<T>
NumberOperation represents numeric operations- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNumberOperation(OperationImpl<T> mixin) protectedNumberOperation(Class<? extends T> type, Operator op, Expression<?>... args) protectedNumberOperation(Class<? extends T> type, Operator op, List<Expression<?>> args) -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,C> R Accept the visitor with the given contextExpression<?>getArg(int index) Get the argument with the given indexList<Expression<?>>getArgs()Get the arguments of this operationGet the operator symbol for this operationnegate()Create athis * -1expressionMethods inherited from class com.querydsl.core.types.dsl.NumberExpression
abs, add, add, as, as, avg, between, between, byteValue, castToNum, ceil, coalesce, coalesce, coalesce, coalesce, divide, divide, doubleValue, floatValue, floor, goe, goe, goeAll, goeAny, gt, gt, gtAll, gtAll, gtAny, gtAny, in, intValue, like, like, loe, loe, loeAll, loeAny, longValue, lt, lt, ltAll, ltAny, max, max, min, min, mod, mod, multiply, multiply, notBetween, notBetween, notIn, nullif, nullif, random, round, shortValue, sqrt, stringValue, subtract, subtract, sumMethods inherited from class com.querydsl.core.types.dsl.ComparableExpressionBase
asc, descMethods inherited from class com.querydsl.core.types.dsl.SimpleExpression
count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, when, whenMethods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
getType
-
Constructor Details
-
NumberOperation
-
NumberOperation
-
NumberOperation
-
-
Method Details
-
negate
Description copied from class:NumberExpressionCreate athis * -1expressionGet the negation of this expression
- Overrides:
negatein classNumberExpression<T extends Number & Comparable<?>>- Returns:
- this * -1
-
accept
Description copied from interface:ExpressionAccept the visitor with the given context- Specified by:
acceptin interfaceExpression<T extends Number & Comparable<?>>- Type Parameters:
R- return typeC- context type- Parameters:
v- visitorcontext- context of visit- Returns:
- result of visit
-
getArg
Description copied from interface:OperationGet the argument with the given index- Specified by:
getArgin interfaceOperation<T extends Number & Comparable<?>>- Parameters:
index- zero based index of expression- Returns:
- expression at index
-
getArgs
Description copied from interface:OperationGet the arguments of this operation- Specified by:
getArgsin interfaceOperation<T extends Number & Comparable<?>>- Returns:
- arguments
-
getOperator
Description copied from interface:OperationGet the operator symbol for this operation- Specified by:
getOperatorin interfaceOperation<T extends Number & Comparable<?>>- Returns:
- operator
-