| Modifier and Type | Method and Description |
|---|---|
static PowerMode |
fromId(int id) |
PowerMode |
getNext() |
PowerMode |
getPrevious() |
static PowerMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerMode M2
public static final PowerMode M4
public static final PowerMode M8
public static final PowerMode M16
public static final PowerMode M32
public static final PowerMode M64
public static final PowerMode M128
public static final PowerMode[] VALUES
public final int maxPower
public static PowerMode[] values()
for (PowerMode c : PowerMode.values()) System.out.println(c);
public static PowerMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic PowerMode getNext()
public PowerMode getPrevious()
public static PowerMode fromId(int id)