public enum LicenseEnumeration extends Enum<LicenseEnumeration>
Modifier and Type | Method and Description |
---|---|
static LicenseEnumeration |
from(int id)
This method gets the correct id type for the given id.
|
int |
getId() |
static LicenseEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LicenseEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LicenseEnumeration INDEX
public static final LicenseEnumeration QUERY
public static final LicenseEnumeration ADMIN
public static LicenseEnumeration[] values()
for (LicenseEnumeration c : LicenseEnumeration.values()) System.out.println(c);
public static LicenseEnumeration 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 int getId()
public static LicenseEnumeration from(int id)
id
- the idCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.