public static enum CBORGenerator.Feature extends Enum<CBORGenerator.Feature>
Enum Constant and Description |
---|
WRITE_MINIMAL_INTS
Feature that determines whether generator should try to use smallest (size-wise)
integer representation: if true, will use smallest representation that is enough
to retain value; if false, will use length indicated by argument type (4-byte
for
int , 8-byte for long and so on). |
Modifier and Type | Field and Description |
---|---|
protected boolean |
_defaultState |
protected int |
_mask |
Modifier and Type | Method and Description |
---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that
are enabled by default.
|
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
getMask() |
static CBORGenerator.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CBORGenerator.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CBORGenerator.Feature WRITE_MINIMAL_INTS
int
, 8-byte for long
and so on).public static CBORGenerator.Feature[] values()
for (CBORGenerator.Feature c : CBORGenerator.Feature.values()) System.out.println(c);
public static CBORGenerator.Feature 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 int collectDefaults()
public boolean enabledByDefault()
public boolean enabledIn(int flags)
public int getMask()
Copyright © 2014–2016 FasterXML. All rights reserved.