public enum Medium extends java.lang.Enum<Medium> implements Enumeration
Modifier and Type | Method and Description |
---|---|
static Medium |
fromString(java.lang.String value) |
java.lang.String |
getValue() |
java.lang.String |
toString() |
static Medium |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Medium[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Medium AIR
public static final Medium OIL
public static final Medium WATER
public static final Medium GLYCEROL
public static final Medium OTHER
public static Medium[] values()
for (Medium c : Medium.values()) System.out.println(c);
public static Medium 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 static Medium fromString(java.lang.String value) throws EnumerationException
EnumerationException
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<Medium>
Copyright © 2014 Open Microscopy Environment