• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.fasterxml.jackson.databind.cfg;
2 
3 /**
4  * Interface that actual SerializationFeature enumerations used by
5  * {@link MapperConfig} implementations must implement.
6  * Necessary since enums cannot be extended using normal
7  * inheritance, but can implement interfaces
8  */
9 public interface ConfigFeature
10 {
11     /**
12      * Accessor for checking whether this feature is enabled by default.
13      */
enabledByDefault()14     public boolean enabledByDefault();
15 
16     /**
17      * Returns bit mask for this feature instance
18      */
getMask()19     public int getMask();
20 
21     /**
22      * Convenience method for checking whether feature is enabled in given bitmask
23      *
24      * @since 2.6
25      */
enabledIn(int flags)26     public boolean enabledIn(int flags);
27 }
28