com.mysema.query.types
Class ConstantImpl<T>
java.lang.Object
com.mysema.query.types.ExpressionBase<T>
com.mysema.query.types.ConstantImpl<T>
- All Implemented Interfaces:
- Constant<T>, Expression<T>, Serializable
public class ConstantImpl<T>
- extends ExpressionBase<T>
- implements Constant<T>
ConstantImpl is the default implementation of the Constant interface
- Author:
- tiwe
- See Also:
- Serialized Form
ConstantImpl
public ConstantImpl(T constant)
ConstantImpl
public ConstantImpl(Class<T> type,
T constant)
create
public static Constant<Boolean> create(boolean b)
create
public static Constant<Byte> create(byte i)
create
public static Constant<Integer> create(int i)
create
public static Constant<Long> create(long i)
create
public static Constant<Short> create(short i)
create
public static Constant<String> create(String str)
create
public static Constant<String> create(String str,
boolean populateCache)
create
public static <T> Constant<Class<T>> create(Class<T> constant)
accept
public <R,C> R accept(Visitor<R,C> v,
C context)
- Description copied from interface:
Expression
- Accept the visitor with the given context
- Specified by:
accept
in interface Expression<T>
- Type Parameters:
R
- return typeC
- context type- Parameters:
v
- visitorcontext
- context of visit
- Returns:
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getConstant
public T getConstant()
- Description copied from interface:
Constant
- Get the constant
- Specified by:
getConstant
in interface Constant<T>
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.