com.mysema.query.types.custom
Class CNumber<T extends Number & Comparable<?>>
java.lang.Object
com.mysema.query.types.Expr<D>
com.mysema.query.types.expr.ESimple<D>
com.mysema.query.types.expr.EComparableBase<D>
com.mysema.query.types.expr.ENumber<T>
com.mysema.query.types.custom.CNumber<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Custom<T>, Serializable
public class CNumber<T extends Number & Comparable<?>>
- extends ENumber<T>
- implements Custom<T>
CNumber defines custom numeric expressions
- Author:
- tiwe
- See Also:
- Serialized Form
Fields inherited from class com.mysema.query.types.Expr |
primitive |
Methods inherited from class com.mysema.query.types.expr.ENumber |
abs, add, add, as, avg, between, between, byteValue, castToNum, ceil, divide, divide, doubleValue, floatValue, floor, goe, goe, gt, gt, in, in, intValue, loe, loe, longValue, lt, lt, max, max, min, min, multiply, multiply, negate, notBetween, notBetween, notIn, random, round, shortValue, sqrt, subtract, subtract, sum |
CNumber
public CNumber(Class<T> type,
Template template,
List<Expr<?>> args)
create
public static <T extends Number & Comparable<?>> ENumber<T> create(Class<T> type,
String template,
Expr<?>... args)
create
public static <T extends Number & Comparable<?>> ENumber<T> create(Class<T> type,
Template template,
Expr<?>... args)
accept
public void accept(Visitor v)
- Specified by:
accept
in class Expr<T extends Number & Comparable<?>>
getArg
public Expr<?> getArg(int index)
- Description copied from interface:
Custom
- Get the argument with the given index
- Specified by:
getArg
in interface Custom<T extends Number & Comparable<?>>
- Returns:
getArgs
public List<Expr<?>> getArgs()
- Description copied from interface:
Custom
- Get the arguments of the custom expression
- Specified by:
getArgs
in interface Custom<T extends Number & Comparable<?>>
- Returns:
getTemplate
public Template getTemplate()
- Description copied from interface:
Custom
- Get the serialization template for this custom expression
- Specified by:
getTemplate
in interface Custom<T extends Number & Comparable<?>>
- Returns:
equals
public boolean equals(Object o)
- Specified by:
equals
in class Expr<T extends Number & Comparable<?>>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Expr<T extends Number & Comparable<?>>
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.