public class DatatypeFeatures extends Object implements Serializable
DatatypeFeature
enumerations.Modifier and Type | Field and Description |
---|---|
protected static int |
FEATURE_INDEX_ENUM |
protected static int |
FEATURE_INDEX_JSON_NODE |
Modifier | Constructor and Description |
---|---|
protected |
DatatypeFeatures(int enabledFor1,
int explicitFor1,
int enabledFor2,
int explicitFor2) |
Modifier and Type | Method and Description |
---|---|
static DatatypeFeatures |
defaultFeatures() |
Boolean |
getExplicitState(DatatypeFeature f)
Accessor for getting explicit state of given feature in this set
iff explicitly set, or
null if not explicitly set (default value) |
boolean |
isEnabled(DatatypeFeature f)
Accessor for getting value of specified feature in this set, regardless of
whether explicit defined or not (if not explicitly enabled/disabled returns
default value,
JacksonFeature.enabledByDefault() . |
boolean |
isExplicitlySet(DatatypeFeature f)
Accessor for checking whether given feature has been explicitly enabled or
disabled in this set or not: if not it has the default value.
|
DatatypeFeatures |
with(DatatypeFeature f)
Mutant factory method that returns an instance with given Feature
explicitly enabled.
|
DatatypeFeatures |
withFeatures(DatatypeFeature... features)
"Bulk" variant of
with(DatatypeFeature) which allows explicit enabling
of multiple features |
DatatypeFeatures |
without(DatatypeFeature f)
Mutant factory method that returns an instance with given Feature
explicitly disabled.
|
DatatypeFeatures |
withoutFeatures(DatatypeFeature... features)
"Bulk" variant of
without(DatatypeFeature) which allows explicit disabling
of multiple features |
protected static final int FEATURE_INDEX_ENUM
protected static final int FEATURE_INDEX_JSON_NODE
protected DatatypeFeatures(int enabledFor1, int explicitFor1, int enabledFor2, int explicitFor2)
public static DatatypeFeatures defaultFeatures()
public DatatypeFeatures with(DatatypeFeature f)
f
- DatatypeFeature
to explicitly enable in this setpublic DatatypeFeatures withFeatures(DatatypeFeature... features)
with(DatatypeFeature)
which allows explicit enabling
of multiple featuresfeatures
- DatatypeFeature
s to explicitly enable in this setpublic DatatypeFeatures without(DatatypeFeature f)
f
- DatatypeFeature
to explicitly disable in this setpublic DatatypeFeatures withoutFeatures(DatatypeFeature... features)
without(DatatypeFeature)
which allows explicit disabling
of multiple featuresfeatures
- DatatypeFeature
s to explicitly disable in this setpublic boolean isEnabled(DatatypeFeature f)
JacksonFeature.enabledByDefault()
.f
- Feature to checkpublic boolean isExplicitlySet(DatatypeFeature f)
f
- Feature to checkpublic Boolean getExplicitState(DatatypeFeature f)
null
if not explicitly set (default value)f
- Feature to checkBoolean.TRUE
if Feature has been explicitly enabled in this set;
Boolean.FALSE
if Feature has been explicitly disabled in this set; or
null
if Feature still has its default value.Copyright © 2008–2022 FasterXML. All rights reserved.