public class GeneratedLiteral<T> extends Object implements Formattable
format
Modifier | Constructor and Description |
---|---|
protected |
GeneratedLiteral(Class<? extends T> cls,
String name) |
protected |
GeneratedLiteral(T value,
Format display) |
protected |
GeneratedLiteral(T value,
String display) |
public final T getValue()
public final Format format()
format
in interface Formattable
public static GeneratedLiteral<Integer> literal(int value)
public static GeneratedLiteral<Long> literal(long value)
public static GeneratedLiteral<Float> literal(float value)
public static GeneratedLiteral<Double> literal(double value)
public static GeneratedLiteral<Boolean> literal(boolean value)
public static GeneratedLiteral<Character> literal(char value)
public static GeneratedLiteral<String> literal(String value)
public static <A extends Formattable> GeneratedLiteral<A[]> literal(MetaClass type, A... values)
public static String quote(int i)
public static String quote(long l)
public static String quote(float f)
public static String quote(double d)
public static String quote(boolean b)
public static String quote(char c)
public static Format array(MetaType type, Formattable... values)
public static Format array(MetaType type, List<? extends Formattable> values)
public static GeneratedLiteral<GeneratedAnnotation> literal(GeneratedAnnotation x)
see also the complete user documentation .