public enum LoadPolicy extends Enum<LoadPolicy>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final LoadPolicy PREFER_SHIPPED
public static final LoadPolicy PREFER_SYSTEM
public static final LoadPolicy SHIPPED_ONLY
public static final LoadPolicy SYSTEM_ONLY
public static LoadPolicy[] values()
for (LoadPolicy c : LoadPolicy.values()) System.out.println(c);
public static LoadPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.