Enum JsonCache.Root.MergePolicy

    • Enum Constant Detail

      • NO_MERGE

        public static final JsonCache.Root.MergePolicy NO_MERGE
        Calls to load() methods are ignored when the cache is already loaded.
      • MERGE_RECURSIVE

        public static final JsonCache.Root.MergePolicy MERGE_RECURSIVE
        Recursively merges the incoming tree into the existing tree, retaining existing leaf properties.
      • KEEP_EXISTING

        public static final JsonCache.Root.MergePolicy KEEP_EXISTING
        Retains existing root properties, ignoring incoming duplicate properties.
      • OVERWRITE_EXISTING

        public static final JsonCache.Root.MergePolicy OVERWRITE_EXISTING
        Overwrites existing root properties with incoming duplicate properties.
    • Method Detail

      • values

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

        public static JsonCache.Root.MergePolicy 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