T
- expression type@Immutable public final class ConstantImpl<T> extends ExpressionBase<T> implements Constant<T>
ConstantImpl
is the default implementation of the Constant
interfaceModifier and Type | Method and Description |
---|---|
<R,C> R |
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context
|
static Constant<java.lang.Boolean> |
create(boolean b) |
static Constant<java.lang.Byte> |
create(byte i) |
static Constant<java.lang.Character> |
create(char i) |
static <T> Constant<T> |
create(java.lang.Class<T> type,
T constant) |
static Constant<java.lang.Integer> |
create(int i) |
static Constant<java.lang.Long> |
create(long i) |
static Constant<java.lang.Short> |
create(short i) |
static <T> Constant<T> |
create(T obj) |
boolean |
equals(java.lang.Object o) |
T |
getConstant()
Get the wrapped constant
|
getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType
public static Constant<java.lang.Boolean> create(boolean b)
public static Constant<java.lang.Byte> create(byte i)
public static Constant<java.lang.Character> create(char i)
public static Constant<java.lang.Integer> create(int i)
public static Constant<java.lang.Long> create(long i)
public static Constant<java.lang.Short> create(short i)
public static <T> Constant<T> create(T obj)
public static <T> Constant<T> create(java.lang.Class<T> type, T constant)
public <R,C> R accept(Visitor<R,C> v, C context)
Expression
accept
in interface Expression<T>
R
- return typeC
- context typev
- visitorcontext
- context of visitpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public T getConstant()
Constant
getConstant
in interface Constant<T>
Copyright © 2007–2021 Querydsl. All rights reserved.