Top Description Methods
com.fasterxml.jackson.core.util

public Interface JacksonFeature

Known Direct Subinterfaces
com.fasterxml.jackson.core.FormatFeature
Known Direct Implementers
com.fasterxml.jackson.core.JsonFactory.Feature, com.fasterxml.jackson.core.StreamReadCapability, com.fasterxml.jackson.core.StreamReadFeature, com.fasterxml.jackson.core.StreamWriteCapability, com.fasterxml.jackson.core.StreamWriteFeature

Basic API implemented by Enums used for simple Jackson "features": on/off settings and capabilities exposed as something that can be internally represented as bit sets. Designed to be used with JacksonFeatureSet.
Since
2.12

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

Whether this instance is enabled by default or not
enabledByDefault
()

Accessor for checking whether this feature is enabled by default.

public boolean

Returns:

True if this feature is enabled in passed bit field
enabledIn
(int
Bit field that contains a set of enabled features of this type
flags
)

Convenience method for checking whether feature is enabled in given bitmask.

public int

Returns:

Bit mask of this feature
getMask
()

Returns bit mask for this feature instance; must be a single bit, that is of form 1 << N.

Method Detail

enabledByDefaultback to summary
public boolean enabledByDefault()

Accessor for checking whether this feature is enabled by default.

Returns:boolean

Whether this instance is enabled by default or not

enabledInback to summary
public boolean enabledIn(int flags)

Convenience method for checking whether feature is enabled in given bitmask.

Parameters
flags:int

Bit field that contains a set of enabled features of this type

Returns:boolean

True if this feature is enabled in passed bit field

getMaskback to summary
public int getMask()

Returns bit mask for this feature instance; must be a single bit, that is of form 1 << N.

Returns:int

Bit mask of this feature