Enum JsonHelper.MergeOption

    • Enum Constant Detail

      • MERGE_ARRAYS

        public static final JsonHelper.MergeOption MERGE_ARRAYS
        This option will cause arrays to be merged rather than replaced. The default is that arrays will be replaced with a new value. Specify this option to merge them instead.
      • IGNORE_NULLS

        public static final JsonHelper.MergeOption IGNORE_NULLS
        This option will ignore null values in an update object. The default is to respect null values and set the updated value to null. Specify this option to ignore nulls instead.
    • Method Detail

      • values

        public static JsonHelper.MergeOption[] 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 (JsonHelper.MergeOption c : JsonHelper.MergeOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JsonHelper.MergeOption 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null