public enum TypeCategory extends Enum<TypeCategory>
Enum Constant and Description |
---|
ANY
Anything
|
ARRAY
Array
|
BEAN
Beans
|
BOOLEAN
Boolean (including primitives)
|
COLLECTION
List/Set
|
ENUM
Enums
|
MAP
Map
|
NUMBER
Short/Integer/Long/Float/Double (including primitives)
|
OTHER
Anything else
|
STRING
String/CharSequence/Character
|
Modifier and Type | Method and Description |
---|---|
static Set<TypeCategory> |
parse(String s)
Parses a comma-delimited list of values into a set of
TypeCategory values. |
static TypeCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeCategory BEAN
public static final TypeCategory MAP
public static final TypeCategory COLLECTION
public static final TypeCategory ARRAY
public static final TypeCategory BOOLEAN
public static final TypeCategory NUMBER
public static final TypeCategory STRING
public static final TypeCategory ENUM
public static final TypeCategory OTHER
public static final TypeCategory ANY
public static TypeCategory[] values()
for (TypeCategory c : TypeCategory.values()) System.out.println(c);
public static TypeCategory 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 static Set<TypeCategory> parse(String s)
TypeCategory
values.s
- The comma-delimited string.TypeCategory
values.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.