public enum StatFormat extends java.lang.Enum<StatFormat> implements PropertyValue
StatFormat ist eine Enumeration aller möglichen Formate der Stationierungsinformation. Die einzelnen Werte besiztzen eine eindeutige
Ordinalzahl.| Enum Constant and Description |
|---|
SECTION_AND_STAT |
STAT_ONLY |
| Modifier and Type | Method and Description |
|---|---|
static StatFormat |
getFormat(int ordinal)
Gibt das
StatFormat-Objekt zu der übergebenen Ordinalzahl zurück, bzw. |
int |
getOrdinal()
Gibt die Ordinalzahl des
StatFormat-Objekts zurück. |
void |
putPreferences(java.util.prefs.Preferences prefs)
Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.
|
java.lang.String |
toString() |
static StatFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatFormat STAT_ONLY
public static final StatFormat SECTION_AND_STAT
public static StatFormat[] values()
for (StatFormat c : StatFormat.values()) System.out.println(c);
public static StatFormat 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 null@Nullable public static StatFormat getFormat(int ordinal)
StatFormat-Objekt zu der übergebenen Ordinalzahl zurück, bzw. null, wenn kein solches Objekt existiert.ordinal - die Ordinalzahlpublic void putPreferences(java.util.prefs.Preferences prefs)
PropertyValueputPreferences in interface PropertyValueprefs - die Preferencespublic int getOrdinal()
StatFormat-Objekts zurück.public java.lang.String toString()
toString in class java.lang.Enum<StatFormat>