public enum TypeConverterEnum extends Enum<TypeConverterEnum> implements DataTypeConverter
Enum Constant and Description |
---|
BOOLEAN
Boolean.
|
DATE
Date (without time).
|
FILE
File.
|
FLOAT
Floating number.
|
INT
Integer, whole number.
|
PATTERN
Regular pattern.
|
STRING
Text, string (default).
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getTypeClass()
Gets class of data type.
|
static TypeConverterEnum |
typeOf(Class<? extends Serializable> clazz)
Gets
TypeConverterEnum by its class. |
static TypeConverterEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeConverterEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
convertToObject, convertToString
public static final TypeConverterEnum STRING
public static final TypeConverterEnum INT
public static final TypeConverterEnum FLOAT
public static final TypeConverterEnum DATE
public static final TypeConverterEnum BOOLEAN
public static final TypeConverterEnum FILE
public static final TypeConverterEnum PATTERN
public static TypeConverterEnum[] values()
for (TypeConverterEnum c : TypeConverterEnum.values()) System.out.println(c);
public static TypeConverterEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<?> getTypeClass()
public static TypeConverterEnum typeOf(Class<? extends Serializable> clazz)
TypeConverterEnum
by its class.clazz
- Requested classCopyright © 2018 Pivotal Software, Inc.. All rights reserved.