Enum Lampe.Farbe
- java.lang.Object
-
- java.lang.Enum<Lampe.Farbe>
-
- Lampe.Farbe
-
- All Implemented Interfaces:
Serializable
,Comparable<Lampe.Farbe>
- Enclosing class:
- Lampe
private static enum Lampe.Farbe extends Enum<Lampe.Farbe>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Farbe()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Color
AWTFarbe()
Konvertiert die angegebene Farbe in ihr AWT-Pendant.static Lampe.Farbe
valueOf(String name)
Returns the enum constant of this type with the specified name.static Lampe.Farbe[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
weiss
public static final Lampe.Farbe weiss
-
schwarz
public static final Lampe.Farbe schwarz
-
rot
public static final Lampe.Farbe rot
-
grün
public static final Lampe.Farbe grün
-
blau
public static final Lampe.Farbe blau
-
gelb
public static final Lampe.Farbe gelb
-
magenta
public static final Lampe.Farbe magenta
-
cyan
public static final Lampe.Farbe cyan
-
grau
public static final Lampe.Farbe grau
-
-
Method Detail
-
values
public static Lampe.Farbe[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Lampe.Farbe c : Lampe.Farbe.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Lampe.Farbe valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
AWTFarbe
Color AWTFarbe()
Konvertiert die angegebene Farbe in ihr AWT-Pendant.- Returns:
- die entsprechende AWT-Farbe
-
-