Class ConstantImpl<T>

java.lang.Object
com.querydsl.core.types.ExpressionBase<T>
com.querydsl.core.types.ConstantImpl<T>
Type Parameters:
T - expression type
All Implemented Interfaces:
Constant<T>, Expression<T>, Serializable

@Immutable public final class ConstantImpl<T> extends ExpressionBase<T> implements Constant<T>
ConstantImpl is the default implementation of the Constant interface
Author:
tiwe
See Also:
  • Method Details

    • create

      public static Constant<Boolean> create(boolean b)
    • create

      public static Constant<Byte> create(byte i)
    • create

      public static Constant<Character> create(char 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 <T> Constant<T> create(T obj)
    • create

      public static <T> Constant<T> create(Class<T> type, 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 type
      C - context type
      Parameters:
      v - visitor
      context - context of visit
      Returns:
      result of visit
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getConstant

      public T getConstant()
      Description copied from interface: Constant
      Get the wrapped constant
      Specified by:
      getConstant in interface Constant<T>
      Returns:
      wrapped constant