public enum JavaVendors extends Enum<JavaVendors>
Modifier and Type | Method and Description |
---|---|
static JavaVendors |
getCurrentVendor()
This static worker method returns the current Vendor.
|
String |
getVirtualMachineClassName() |
boolean |
isIBM()
This static worker method returns true if the current implementation is IBM.
|
boolean |
isSun()
This static worker method returns true if the current implementation is Sun.
|
static JavaVendors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaVendors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaVendors IBM
public static final JavaVendors SUN
public static final JavaVendors OTHER
public static JavaVendors[] values()
for (JavaVendors c : JavaVendors.values()) System.out.println(c);
public static JavaVendors 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 static JavaVendors getCurrentVendor()
public boolean isIBM()
public boolean isSun()
public String getVirtualMachineClassName()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.