PropertyValue, java.io.Serializable, java.lang.Comparable<RnFormat>public enum RnFormat extends java.lang.Enum<RnFormat> implements PropertyValue
RnFormat ist eine Enumeration aller möglichen Formate der Routennummernformaten.
Die einzelnen Werte besiztzen eine eindeutige Ordinalzahl.| Modifier and Type | Method | Description |
|---|---|---|
static RnFormat |
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 RnFormat |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RnFormat[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RnFormat RN_SMALL
public static final RnFormat RN_BIG
public static RnFormat[] values()
for (RnFormat c : RnFormat.values()) System.out.println(c);
public static RnFormat 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 void putPreferences(java.util.prefs.Preferences prefs)
PropertyValueputPreferences in interface PropertyValueprefs - die Preferences@Nullable public static RnFormat getFormat(int ordinal)
StatFormat-Objekt zu der übergebenen Ordinalzahl zurück, bzw. null,
wenn kein solches Objekt existiert.ordinal - die Ordinalzahlpublic int getOrdinal()
StatFormat-Objekts zurück.public java.lang.String toString()
toString in class java.lang.Enum<RnFormat>