public enum Geschlecht extends Enum<Geschlecht>
| Enum Constant and Description |
|---|
NUR_FRAUEN |
NUR_MAENNER |
| Modifier and Type | Method and Description |
|---|---|
static Geschlecht |
parse(String value) |
String |
print() |
static Geschlecht |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Geschlecht[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Geschlecht NUR_MAENNER
public static final Geschlecht NUR_FRAUEN
public static Geschlecht[] values()
for (Geschlecht c : Geschlecht.values()) System.out.println(c);
public static Geschlecht 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 static Geschlecht parse(String value)
public String print()
Copyright © 2016 OpenEstate. All rights reserved.