Top Description Methods
com.fasterxml.jackson.core

public Interface FormatFeature

extends JacksonFeature
Known Direct Implementers
com.fasterxml.jackson.core.json.JsonReadFeature, com.fasterxml.jackson.core.json.JsonWriteFeature
Imports
com.fasterxml.jackson.core.util.JacksonFeature

Marker interface that is to be implemented by data format - specific features. Interface used since Java Enums can not extend classes or other Enums, but they can implement interfaces; and as such we may be able to use limited amount of generic functionality.

Since 2.12 this is more of an extra marker feature, as its core API is now defined in more general JacksonFeature.

Since
2.6

Method Summary

Modifier and TypeMethod and Description
public boolean
enabledByDefault()

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.
public boolean
enabledIn(int
Bit field that contains a set of enabled features of this type
flags
)

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask
public int
getMask()

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.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()

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.

Returns:boolean

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledByDefault.

Whether this instance is enabled by default or not

Annotations
@Override
enabledInback to summary
public boolean enabledIn(int flags)

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask

Parameters
flags:int

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

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

Returns:boolean

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

True if this feature is enabled in passed bit field

Annotations
@Override
getMaskback to summary
public int getMask()

Redeclares com.fasterxml.jackson.core.util.JacksonFeature.getMask.

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

Returns:int

Doc from com.fasterxml.jackson.core.util.JacksonFeature.getMask.

Bit mask of this feature

Annotations
@Override