public enum Plug extends Enum<Plug>
| Modifier and Type | Method and Description |
|---|---|
Integer |
getPlugNumber() |
static Plug |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Plug[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Plug PLUG1
public static final Plug PLUG2
public static final Plug PLUG3
public static final Plug PLUG4
public static Plug[] values()
for (Plug c : Plug.values()) System.out.println(c);
public static Plug 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 Integer getPlugNumber()
Copyright © 2004-2013. All Rights Reserved.