public static enum ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm extends Enum<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm> implements ByteArrayClassLoader.PackageLookupStrategy
ByteArrayClassLoader.PackageLookupStrategy.CreationAction, ByteArrayClassLoader.PackageLookupStrategy.ForJava9CapableVm, ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Package |
apply(ByteArrayClassLoader classLoader,
String name)
Returns a package for a given byte array class loader and a name.
|
String |
toString() |
static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm INSTANCE
public static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm[] values()
for (ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm c : ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm.values()) System.out.println(c);
public static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm 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 nullpublic Package apply(ByteArrayClassLoader classLoader, String name)
ByteArrayClassLoader.PackageLookupStrategy
apply
in interface ByteArrayClassLoader.PackageLookupStrategy
classLoader
- The class loader to locate a package for.name
- The name of the package.null
if no such package exists.public String toString()
toString
in class Enum<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm>
Copyright © 2014–2017. All rights reserved.