|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.types.expr.Expr<D>
com.mysema.query.types.expr.EComparableBase<D>
com.mysema.query.types.expr.ENumber<D>
D
- Java typepublic abstract class ENumber<D extends Number & Comparable<?>>
ENumber represents a numeric expression
Number
,
Serialized FormConstructor Summary | |
---|---|
ENumber(Class<? extends D> type)
|
Method Summary | ||
---|---|---|
ENumber<D> |
abs()
Get the absolute value of this expression |
|
|
add(Expr<N> right)
Get the sum of this and right |
|
|
add(N right)
Get the sum of this and right |
|
ENumber<Double> |
avg()
Get the average value of this expression (aggregation) |
|
|
between(A from,
A to)
Create a from < this < to expression |
|
|
between(Expr<A> from,
Expr<A> to)
Create a from < this < to expression |
|
ENumber<Byte> |
byteValue()
Get the byte expression of this numeric expression |
|
|
castToNum(Class<A> type)
Create a cast expression to the given numeric type |
|
ENumber<D> |
ceil()
Returns the smallest (closest to negative infinity) double value that is greater than or equal to the
argument and is equal to a mathematical integer |
|
|
divide(Expr<N> right)
Get the result of the operation this / right |
|
|
divide(N right)
Get the result of the operation this / right |
|
ENumber<Double> |
doubleValue()
Get the double expression of this numeric expression |
|
ENumber<Float> |
floatValue()
Get the float expression of this numeric expression |
|
ENumber<D> |
floor()
Returns the largest (closest to positive infinity) double value that is less than or equal to the
argument and is equal to a mathematical integer. |
|
|
goe(A right)
Create a this >= right expression |
|
|
goe(Expr<A> right)
Create a this >= right expression |
|
|
gt(A right)
Create a this > right expression |
|
|
gt(Expr<A> right)
Create a this > right expression |
|
ENumber<Integer> |
intValue()
Get the int expression of this numeric expression |
|
|
loe(A right)
Create a this <= right expression |
|
|
loe(Expr<A> right)
Create a this <= right expression |
|
ENumber<Long> |
longValue()
Get the long expression of this numeric expression |
|
|
lt(A right)
Create a this < right expression |
|
|
lt(Expr<A> right)
Create a this < right expression |
|
ENumber<D> |
max()
Get the maximum value of this expression (aggregation) |
|
static
|
max(Expr<A> left,
Expr<A> right)
Return the greater of the given values |
|
ENumber<D> |
min()
Get the minimum value of this expression (aggregation) |
|
static
|
min(Expr<A> left,
Expr<A> right)
Return the smaller of the given values |
|
|
multiply(Expr<N> right)
Get the result of the operation this * right |
|
|
multiply(N right)
Get the result of the operation this * right |
|
ENumber<D> |
negate()
Get the negation of this expression |
|
|
notBetween(A from,
A to)
|
|
|
notBetween(Expr<A> from,
Expr<A> to)
|
|
static ENumber<Double> |
random()
Returns the random expression |
|
ENumber<Integer> |
round()
Returns the closest int to the argument. |
|
ENumber<Short> |
shortValue()
Get the short expression of this numeric expression |
|
ENumber<Double> |
sqrt()
Get the square root of this numeric expressions |
|
|
subtract(Expr<N> right)
Get the difference of this and right |
|
|
subtract(N right)
Get the difference of this and right |
|
ENumber<D> |
sum()
Get the sum of this expression (aggregation) |
Methods inherited from class com.mysema.query.types.expr.EComparableBase |
---|
asc, desc, stringValue |
Methods inherited from class com.mysema.query.types.expr.Expr |
---|
accept, count, countAll, countDistinct, eq, eq, getType, hashCode, in, in, in, ne, ne, notIn, notIn, notIn, toString, when, when |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ENumber(Class<? extends D> type)
Method Detail |
---|
public static <A extends Number & Comparable<?>> ENumber<A> max(Expr<A> left, Expr<A> right)
public static <A extends Number & Comparable<?>> ENumber<A> min(Expr<A> left, Expr<A> right)
public static ENumber<Double> random()
public ENumber<D> abs()
public <N extends Number & Comparable<?>> ENumber<D> add(Expr<N> right)
right
-
public <N extends Number & Comparable<N>> ENumber<D> add(N right)
right
-
public ENumber<Double> avg()
public ENumber<Byte> byteValue()
Number.byteValue()
public <A extends Number & Comparable<? super A>> ENumber<A> castToNum(Class<A> type)
EComparableBase
castToNum
in class EComparableBase<D extends Number & Comparable<?>>
public ENumber<D> ceil()
double
value that is greater than or equal to the
argument and is equal to a mathematical integer
Math.ceil(double)
public <N extends Number & Comparable<?>> ENumber<Double> divide(Expr<N> right)
right
-
public <N extends Number & Comparable<?>> ENumber<Double> divide(N right)
right
-
public ENumber<Double> doubleValue()
Number.doubleValue()
public ENumber<Float> floatValue()
Number.floatValue()
public ENumber<D> floor()
double
value that is less than or equal to the
argument and is equal to a mathematical integer.
Math.floor(double)
public final <A extends Number & Comparable<?>> EBoolean goe(A right)
this >= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> EBoolean goe(Expr<A> right)
this >= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> EBoolean gt(A right)
this > right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> EBoolean between(A from, A to)
from < this < to
expression
A
- from
- to
-
public final <A extends Number & Comparable<?>> EBoolean between(Expr<A> from, Expr<A> to)
from < this < to
expression
A
- from
- to
-
public final <A extends Number & Comparable<?>> EBoolean notBetween(A from, A to)
from
- to
-
public final <A extends Number & Comparable<?>> EBoolean notBetween(Expr<A> from, Expr<A> to)
from
- to
-
public final <A extends Number & Comparable<?>> EBoolean gt(Expr<A> right)
this > right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public ENumber<Integer> intValue()
Number.intValue()
public final <A extends Number & Comparable<?>> EBoolean loe(A right)
this <= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> EBoolean loe(Expr<A> right)
this <= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public ENumber<Long> longValue()
Number.longValue()
public final <A extends Number & Comparable<?>> EBoolean lt(A right)
this < right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> EBoolean lt(Expr<A> right)
this < right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public ENumber<D> max()
public ENumber<D> min()
public <N extends Number & Comparable<?>> ENumber<D> multiply(Expr<N> right)
right
-
public <N extends Number & Comparable<N>> ENumber<D> multiply(N right)
right
-
public ENumber<D> negate()
public ENumber<Integer> round()
int
to the argument.
Math.round(double)
,
Math.round(float)
public ENumber<Short> shortValue()
Number.shortValue()
public ENumber<Double> sqrt()
public <N extends Number & Comparable<?>> ENumber<D> subtract(Expr<N> right)
right
-
public <N extends Number & Comparable<?>> ENumber<D> subtract(N right)
right
-
public ENumber<D> sum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |