public static enum DataValue.Type extends Enum<DataValue.Type>
Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
INTEGER |
NULL |
NUMBER |
OBJECT |
STRING |
Modifier and Type | Method and Description |
---|---|
static DataValue.Type[] |
any()
Returns the set of all non-null types.
|
boolean |
isComposite()
Returns true if this type designates a composite value
|
boolean |
isNumeric()
Returns true if this type designates a numeric value
|
static DataValue.Type[] |
not(DataValue.Type... excluded)
Returns the set of all non-null types except for the specified excluded type.
|
static DataValue.Type[] |
only(DataValue.Type type)
Returns the set containing only the specified type.
|
static DataValue.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataValue.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataValue.Type ARRAY
public static final DataValue.Type BOOLEAN
public static final DataValue.Type INTEGER
public static final DataValue.Type NULL
public static final DataValue.Type NUMBER
public static final DataValue.Type OBJECT
public static final DataValue.Type STRING
public static DataValue.Type[] values()
for (DataValue.Type c : DataValue.Type.values()) System.out.println(c);
public static DataValue.Type 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 boolean isComposite()
public boolean isNumeric()
public static DataValue.Type[] only(DataValue.Type type)
public static DataValue.Type[] not(DataValue.Type... excluded)
public static DataValue.Type[] any()
Copyright © 2024 The Cornutum Project. All rights reserved.