Converters

public final class Converters

Converters for primitive types. Most of these just call toString on the passed object and then get the raw representation of the string result. . User: nikolavp Date: 28/02/14 Time: 17:25

Fields

BOOLEAN

public static final Converter<Boolean> BOOLEAN

A converter for the primitive or wrapper boolean object.

BOOLEAN_ARRAY

public static final Converter<boolean[]> BOOLEAN_ARRAY

A converter for the primitive boolean arrays.

BYTE

public static final Converter<Byte> BYTE

A converter for the primitive or wrapper byte types.

BYTE_ARRAY

public static final Converter<byte[]> BYTE_ARRAY

A converter for the primitive byte arrays.

CHAR

public static final Converter<Character> CHAR

A converter for the primitive or wrapper char object.

CHAR_ARRAY

public static final Converter<char[]> CHAR_ARRAY

A converter for the primitive char arrays.

DOUBLE

public static final Converter<Double> DOUBLE

A converter for the primitive or wrapper double object.

DOUBLE_ARRAY

public static final Converter<double[]> DOUBLE_ARRAY

A converter for the primitive double arrays.

FLOAT

public static final Converter<Float> FLOAT

A converter for the primitive or wrapper float object.

FLOAT_ARRAY

public static final Converter<float[]> FLOAT_ARRAY

A converter for the primitive float arrays.

INTEGER

public static final Converter<Integer> INTEGER

A converter for the primitive or wrapper int object.

INTEGER_ARRAY

public static final Converter<int[]> INTEGER_ARRAY

A converter for the primitive int arrays.

LONG

public static final Converter<Long> LONG

A converter for the primitive or wrapper long object.

LONG_ARRAY

public static final Converter<long[]> LONG_ARRAY

A converter for the primitive long arrays.

SHORT

public static final Converter<Short> SHORT

A converter for the primitive or wrapper short object.

SHORT_ARRAY

public static final Converter<short[]> SHORT_ARRAY

A converter for the primitive short arrays.

STRING

public static final Converter<String> STRING

A converter for the String object.

STRING_ARRAY

public static final Converter<String[]> STRING_ARRAY

A converter for an array of strings.

Methods

of

static <T> Converter<T> of()

ofArray

static <T> Converter<T> ofArray()