Package net.automatalib.common.util.lib
Enum LoadPolicy
- java.lang.Object
-
- java.lang.Enum<LoadPolicy>
-
- net.automatalib.common.util.lib.LoadPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<LoadPolicy>
public enum LoadPolicy extends Enum<LoadPolicy>
Specifies in which order a library to be loaded is searched for.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PREFER_SHIPPED
First try to load a compatible version of the requested library shipped with the loading class.PREFER_SYSTEM
First try to load the system version of the requested library.SHIPPED_ONLY
Only try to load a compatible version of the requested library shipped with the loading class.SYSTEM_ONLY
Only try to load the system version of the requested library.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoadPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static LoadPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREFER_SHIPPED
public static final LoadPolicy PREFER_SHIPPED
First try to load a compatible version of the requested library shipped with the loading class. If that fails, try loading the system-provided version of that library.
-
PREFER_SYSTEM
public static final LoadPolicy PREFER_SYSTEM
First try to load the system version of the requested library. If that fails, try loading a compatible shipped version.
-
SHIPPED_ONLY
public static final LoadPolicy SHIPPED_ONLY
Only try to load a compatible version of the requested library shipped with the loading class.
-
SYSTEM_ONLY
public static final LoadPolicy SYSTEM_ONLY
Only try to load the system version of the requested library.
-
-
Method Detail
-
values
public static LoadPolicy[] 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 (LoadPolicy c : LoadPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoadPolicy 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 nameNullPointerException
- if the argument is null
-
-