com.mysema.query.types.expr
Class ExprConst<D>
java.lang.Object
com.mysema.query.types.Expr<D>
com.mysema.query.types.expr.ESimple<D>
com.mysema.query.types.expr.ExprConst<D>
- Type Parameters:
D
- Java type of constant
- All Implemented Interfaces:
- Constant<D>, Serializable
public class ExprConst<D>
- extends ESimple<D>
- implements Constant<D>
ExprConst represents general constant expressions
- Author:
- tiwe
- See Also:
- Serialized Form
Fields inherited from class com.mysema.query.types.Expr |
primitive |
Methods inherited from interface com.mysema.query.types.Constant |
asExpr |
create
public static <T> Expr<T> create(T val)
- Factory method for constants
- Type Parameters:
D
- - Parameters:
val
-
- Returns:
accept
public void accept(Visitor v)
- Specified by:
accept
in class Expr<D>
eq
public EBoolean eq(D s)
- Description copied from class:
Expr
- Get a
this == right
expression
- Overrides:
eq
in class ESimple<D>
- Parameters:
s
- rhs of the comparison
- Returns:
equals
public boolean equals(Object o)
- Specified by:
equals
in class Expr<D>
getConstant
public D getConstant()
- Get the embedded constant
- Specified by:
getConstant
in interface Constant<D>
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Expr<D>
ne
public EBoolean ne(D s)
- Description copied from class:
Expr
- Get a
this <> right
expression
- Overrides:
ne
in class ESimple<D>
- Parameters:
s
- rhs of the comparison
- Returns:
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.