Enum Export.Substitution

    • Enum Constant Detail

      • CONSUMER

        public static final Export.Substitution CONSUMER
        Use a consumer type version range for the import package clause when substitutably importing a package.
        See Also:
        ConsumerType
      • PROVIDER

        public static final Export.Substitution PROVIDER
        Use a provider type version range for the import package clause when substitutably importing a package.
        See Also:
        ProviderType
      • NOIMPORT

        public static final Export.Substitution NOIMPORT
        The package must not be substitutably imported.
      • CALCULATED

        public static final Export.Substitution CALCULATED
        The policy value is calculated by inspection of the classes in the package.
    • Method Detail

      • values

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

        public static Export.Substitution 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