Enum Constant and Description |
---|
GUIDE
This literal indicates a guide tube.
|
INSTRUMENT
This literal indicates an instrument tube.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns the string name of the enumerated value.
|
TubeType |
toType(java.lang.String name)
Returns the type of enumeration keyed on name.
|
static TubeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TubeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TubeType GUIDE
This literal indicates a guide tube.
public static final TubeType INSTRUMENT
This literal indicates an instrument tube.
public static TubeType[] values()
for (TubeType c : TubeType.values()) System.out.println(c);
public static TubeType 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 TubeType toType(java.lang.String name)
Returns the type of enumeration keyed on name. Returns null if invalid name.
name
- The name associated with the enumerated value.
The type of enumeration.
public java.lang.String toString()
Returns the string name of the enumerated value.
toString
in class java.lang.Enum<TubeType>
The name of the enumerated value.