Top Description Methods
tools.jackson.core.util

public Interface JacksonFeature

Known Direct Subinterfaces
tools.jackson.core.FormatFeature
Known Direct Implementers
tools.jackson.core.StreamReadCapability, tools.jackson.core.StreamReadFeature, tools.jackson.core.StreamWriteCapability, tools.jackson.core.StreamWriteFeature, tools.jackson.core.TokenStreamFactory.Feature

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.

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
Bitfield 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

Bitfield 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