public enum TypeUtil extends Enum<TypeUtil>
Enum Constant and Description |
---|
INSTANCE
The instance.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isDateType(Class<?> type)
Tests if the given type is a date type.
|
static boolean |
isNumberType(Class<?> type)
Tests if the given type is a number type.
|
static TypeUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeUtil INSTANCE
public static TypeUtil[] values()
for (TypeUtil c : TypeUtil.values()) System.out.println(c);
public static TypeUtil 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 boolean isDateType(Class<?> type)
type
- The type. May not be null.public static boolean isNumberType(Class<?> type)
type
- The type. May not be null.Copyright © 2010–2014 Lunar Ray. All rights reserved.