Enum DataFetchStrategy

    • Enum Constant Detail

      • STRICT

        public static final DataFetchStrategy STRICT
        Retrieves sorted data from Configuration objects declared with a specific namespace.

        If no namespace is specified during data fetch, only Configuration objects without a namespace defined will be searched.

        Configuration objects are sorted from the highest to the lowest precedence attribute, as determined by the ConfigurationComparator.

      • STRICT_UNSORTED

        public static final DataFetchStrategy STRICT_UNSORTED
        Retrieves unsorted data from Configuration objects declared with a specific namespace.

        If no namespace is specified during data fetch, only Configuration objects without a namespace defined will be searched.

        Since:
        0.2.0
      • LENIENT

        public static final DataFetchStrategy LENIENT
        Retrieves sorted data from all Configuration objects regardless of their namespaces when no namespace specified during data fetch.

        Configuration objects are sorted from the highest to the lowest precedence attribute, as determined by the ConfigurationComparator.

      • LENIENT_UNSORTED

        public static final DataFetchStrategy LENIENT_UNSORTED
        Retrieves unsorted data from all Configuration objects regardless of their namespaces when no namespace specified during data fetch.
        Since:
        0.2.0
    • Method Detail

      • values

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

        public static DataFetchStrategy 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