Package org.mongojack

Enum MongoJackModuleFeature

    • Enum Constant Detail


        public static final MongoJackModuleFeature REGISTER_JAVA_TIME
        Register the java time module on configuration

        public static final MongoJackModuleFeature DISABLE_DATES_AS_TIMESTAMPS
        Disable writing dates as timestamps objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);, because we get fewer runtime problems that way.

        public static final MongoJackModuleFeature SET_SERIALIZATION_INCLUSION_NON_NULL
        Sets the mapper's serialization inclusion to non-null

        public static final MongoJackModuleFeature WRITE_INSTANT_AS_BSON_DATE
        Serialises Instants as BSON dates when nanosecond precision is disabled.
        See Also:
    • Method Detail

      • values

        public static MongoJackModuleFeature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MongoJackModuleFeature c : MongoJackModuleFeature.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MongoJackModuleFeature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • enabledByDefault

        public boolean enabledByDefault()
        Specified by:
        enabledByDefault in interface com.fasterxml.jackson.databind.cfg.ConfigFeature
      • getMask

        public int getMask()
        Specified by:
        getMask in interface com.fasterxml.jackson.databind.cfg.ConfigFeature
      • enabledIn

        public boolean enabledIn​(int flags)
        Specified by:
        enabledIn in interface com.fasterxml.jackson.databind.cfg.ConfigFeature