public enum IntegerTypePreference extends Enum<IntegerTypePreference>
integer should be used over number in the result
schema. Note that this class is not for determining whether a single number is an integer. That
is the job of the IntegerTypeCriterion.IntegerTypeCriterion| Enum Constant and Description |
|---|
IF_ALL
Use
integer if and only if all the samples are integers according to the
IntegerTypeCriterion. |
IF_ANY
Use
integer if an element is an integer according to the IntegerTypeCriterion. |
NEVER
Never use
integer. |
| Modifier and Type | Method and Description |
|---|---|
static IntegerTypePreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntegerTypePreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntegerTypePreference IF_ALL
integer if and only if all the samples are integers according to the
IntegerTypeCriterion. Use number otherwise.public static final IntegerTypePreference IF_ANY
integer if an element is an integer according to the IntegerTypeCriterion.
Note that this option allows integer and number to coexist in one (sub)schema.public static final IntegerTypePreference NEVER
integer. Always use number instead.public static IntegerTypePreference[] values()
for (IntegerTypePreference c : IntegerTypePreference.values()) System.out.println(c);
public static IntegerTypePreference 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 nullCopyright © 2019–2022. All rights reserved.