DatatypeFeature enumerations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | DatatypeFeatures.
Helper class to avoid cyclic dependencies when initializing default
instance for |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| protected static final int | |
| protected static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static final int | |
| private DatatypeFeatures | |
| public static DatatypeFeatures | |
| public Boolean | Returns: Boolean.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.Feature to check f)Accessor for getting explicit state of given feature in this set
iff explicitly set, or |
| public boolean | Returns: True if the specified Feature is enabled in this set either explicitly or by having enabled by default (if not explicit enabled or disabled).Feature to check 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, |
| public boolean | Returns: Whether given feature has been explicitly disabledFeature to check f)Convenience method equivalent to: isExplicitlySet(f) && isDisabled(f) |
| public boolean | Returns: Whether given feature has been explicitly enabledFeature to check f)Convenience method equivalent to: isExplicitlySet(f) && isEnabled(f) |
| public boolean | Returns: Whether given feature has been explicitly set (enabled or disabled) in this set or not.Feature to check 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. |
| public DatatypeFeatures | Returns: Existing instance if there is no change (feature was already explicitly enabled), or a new instance with feature explicitly enabled (if it was not).DatatypeFeature to explicitly enable in this setMutant factory method that returns an instance with given Feature explicitly enabled. |
| public DatatypeFeatures | Returns: Existing instance if there is no change (features were already explicitly enabled), or a new instance with features explicitly enabled (if it was not).DatatypeFeatures to explicitly enable in this set"Bulk" variant of |
| public DatatypeFeatures | Returns: Existing instance if there is no change (feature was already explicitly disabled), or a new instance with feature explicitly disabled (if it was not).DatatypeFeature to explicitly disable in this setMutant factory method that returns an instance with given Feature explicitly disabled. |
| public DatatypeFeatures | Returns: Existing instance if there is no change (features were already explicitly disabled), or a new instance with features explicitly disabled (if it was not).DatatypeFeatures to explicitly disable in this set"Bulk" variant of |
| _enabledFor1 | back to summary |
|---|---|
| private final int _enabledFor1 | |
| _enabledFor2 | back to summary |
|---|---|
| private final int _enabledFor2 | |
| _explicitFor1 | back to summary |
|---|---|
| private final int _explicitFor1 | |
| _explicitFor2 | back to summary |
|---|---|
| private final int _explicitFor2 | |
| FEATURE_INDEX_ENUM | back to summary |
|---|---|
| protected static final int FEATURE_INDEX_ENUM | |
| FEATURE_INDEX_JSON_NODE | back to summary |
|---|---|
| protected static final int FEATURE_INDEX_JSON_NODE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DatatypeFeatures | back to summary |
|---|---|
| protected DatatypeFeatures(int enabledFor1, int explicitFor1, int enabledFor2, int explicitFor2) | |
| _calcMask | back to summary |
|---|---|
| private static final int _calcMask(DatatypeFeature... features) | |
| _with | back to summary |
|---|---|
| private DatatypeFeatures _with(int enabledFor1, int explicitFor1, int enabledFor2, int explicitFor2) | |
| defaultFeatures | back to summary |
|---|---|
| public static DatatypeFeatures defaultFeatures() | |
| getExplicitState | back to summary |
|---|---|
| public Boolean getExplicitState(DatatypeFeature f) Accessor for getting explicit state of given feature in this set
iff explicitly set, or
| |
| isEnabled | back to summary |
|---|---|
| public 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,
| |
| isExplicitlyDisabled | back to summary |
|---|---|
| public boolean isExplicitlyDisabled(DatatypeFeature f) Convenience method equivalent to: isExplicitlySet(f) && isDisabled(f)
| |
| isExplicitlyEnabled | back to summary |
|---|---|
| public boolean isExplicitlyEnabled(DatatypeFeature f) Convenience method equivalent to: isExplicitlySet(f) && isEnabled(f)
| |
| isExplicitlySet | back to summary |
|---|---|
| public 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.
| |
| with | back to summary |
|---|---|
| public DatatypeFeatures with(DatatypeFeature f) Mutant factory method that returns an instance with given Feature explicitly enabled.
| |
| withFeatures | back to summary |
|---|---|
| public DatatypeFeatures withFeatures(DatatypeFeature... features) "Bulk" variant of
| |
| without | back to summary |
|---|---|
| public DatatypeFeatures without(DatatypeFeature f) Mutant factory method that returns an instance with given Feature explicitly disabled.
| |
| withoutFeatures | back to summary |
|---|---|
| public DatatypeFeatures withoutFeatures(DatatypeFeature... features) "Bulk" variant of
| |
DatatypeFeatures.
| Modifier and Type | Field and Description |
|---|---|
| private static final DatatypeFeatures |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <F extends Enum | |
| public static DatatypeFeatures |
| DEFAULT_FEATURES | back to summary |
|---|---|
| private static final DatatypeFeatures DEFAULT_FEATURES | |
| DefaultHolder | back to summary |
|---|---|
| private DefaultHolder() | |
| collectDefaults | back to summary |
|---|---|
| private static <F extends Enum | |
| getDefault | back to summary |
|---|---|
| public static DatatypeFeatures getDefault() | |