com.mysema.query.types.expr
Class ONumber<D extends Number & Comparable<?>>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.expr.EComparableBase<D>
              extended by com.mysema.query.types.expr.ENumber<D>
                  extended by com.mysema.query.types.expr.ONumber<D>
Type Parameters:
D -
All Implemented Interfaces:
Operation<D>, Serializable

public class ONumber<D extends Number & Comparable<?>>
extends ENumber<D>
implements Operation<D>

ONumber represents numeric operations

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Method Summary
 void accept(Visitor v)
           
static
<D extends Number & Comparable<?>>
ENumber<D>
create(Class<? extends D> type, Operator<? super D> op, Expr<?>... args)
          Factory method
 boolean equals(Object o)
           
 Expr<?> getArg(int index)
          Get the argument with the given index
 List<Expr<?>> getArgs()
          Get the arguments of this operation
 Operator<? super D> getOperator()
          Get the operator symbol for this operation
 int hashCode()
           
 
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, mod, mod, multiply, multiply, negate, notBetween, notBetween, notIn, random, round, shortValue, sqrt, subtract, subtract, sum
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, desc, stringValue
 
Methods inherited from class com.mysema.query.types.expr.ESimple
asExpr, count, countDistinct, eq, eq, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
getType, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Operation
asExpr, getType
 

Method Detail

create

public static <D extends Number & Comparable<?>> ENumber<D> create(Class<? extends D> type,
                                                                  Operator<? super D> op,
                                                                  Expr<?>... args)
Factory method

Type Parameters:
D -
Parameters:
type -
op -
args -
Returns:

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<D extends Number & Comparable<?>>

getArg

public Expr<?> getArg(int index)
Description copied from interface: Operation
Get the argument with the given index

Specified by:
getArg in interface Operation<D extends Number & Comparable<?>>
Returns:

getArgs

public List<Expr<?>> getArgs()
Description copied from interface: Operation
Get the arguments of this operation

Specified by:
getArgs in interface Operation<D extends Number & Comparable<?>>
Returns:

getOperator

public Operator<? super D> getOperator()
Description copied from interface: Operation
Get the operator symbol for this operation

Specified by:
getOperator in interface Operation<D extends Number & Comparable<?>>
Returns:

equals

public boolean equals(Object o)
Specified by:
equals in class Expr<D extends Number & Comparable<?>>

hashCode

public int hashCode()
Overrides:
hashCode in class Expr<D extends Number & Comparable<?>>


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.