public enum ValueType extends Enum<ValueType> implements Comparator<ValueType>
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
DOUBLE |
FLOAT |
INT |
LONG |
OBJECT |
STRING |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ValueType o1,
ValueType o2) |
String |
getSimpleName() |
Class<?> |
getValueClass() |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType |
valueOfAssignableClass(Class<?> clazz) |
static ValueType |
valueOfClassName(String typeName) |
static ValueType[] |
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, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final ValueType LONG
public static final ValueType INT
public static final ValueType FLOAT
public static final ValueType DOUBLE
public static final ValueType BOOLEAN
public static final ValueType BYTE
public static final ValueType STRING
public static final ValueType OBJECT
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 String getSimpleName()
public int compare(ValueType o1, ValueType o2)
compare in interface Comparator<ValueType>public Class<?> getValueClass()
Copyright © 2018. All rights reserved.