public enum EJVMVendor extends Enum<EJVMVendor>
| Enum Constant and Description |
|---|
ORACLE_CLIENT |
ORACLE_SERVER |
SUN_CLIENT |
SUN_SERVER |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
determineIfItIsCurrentJVMVendor() |
static EJVMVendor |
getCurrentVendor() |
boolean |
isJVMVendor() |
boolean |
isOracle() |
boolean |
isSun() |
static EJVMVendor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EJVMVendor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EJVMVendor SUN_CLIENT
public static final EJVMVendor SUN_SERVER
public static final EJVMVendor ORACLE_CLIENT
public static final EJVMVendor ORACLE_SERVER
public static final EJVMVendor UNKNOWN
public static EJVMVendor[] values()
for (EJVMVendor c : EJVMVendor.values()) System.out.println(c);
public static EJVMVendor 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 nullprotected abstract boolean determineIfItIsCurrentJVMVendor()
public final boolean isJVMVendor()
public final boolean isSun()
true if this is a Sun JVM (usually for Java ≤ 1.6).public final boolean isOracle()
true if this is an Oracle JVM (for Java ≥ 1.7).@Nonnull public static EJVMVendor getCurrentVendor()
UNKNOWN is returned and never null.Copyright © 2014–2020 Philip Helger. All rights reserved.