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