public enum StrassenTyp extends Enum<StrassenTyp> implements Zustand<Integer>
Enum Constant and Description |
---|
ANLIEGERSTRASSE
eine Anliegerstraße.
|
AUTOBAHN
eine Autobahn.
|
BUNDESSSTRASSE
eine Bundesstraße.
|
HAUPTVERKEHRSSTRASSE
eine Hauptverkehrsstraße.
|
KREISSTRASSE
eine Kreisstraße.
|
LANDSTRASSE
eine Landstraße.
|
SAMMELSTRASSE
eine Sammelstraße.
|
SONSTIGE
Allgemeiner nicht näher definierte Straße.
|
STADTSTRASSE
eine Stadtstraße.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
der Code des Zustandes.
|
private String |
name
die Bezeichnung des Zustandes.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getCode()
liefert den Code des Zustandes.
|
String |
getName()
Liefert den Namen des Zustandes.
|
static StrassenTyp |
getTyp(int gesuchterCode)
liefert den Straßenknotentyp, der dem übergebenen Code entspricht.
|
static StrassenTyp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrassenTyp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StrassenTyp SONSTIGE
public static final StrassenTyp AUTOBAHN
public static final StrassenTyp BUNDESSSTRASSE
public static final StrassenTyp LANDSTRASSE
public static final StrassenTyp KREISSTRASSE
public static final StrassenTyp STADTSTRASSE
public static final StrassenTyp HAUPTVERKEHRSSTRASSE
public static final StrassenTyp SAMMELSTRASSE
public static final StrassenTyp ANLIEGERSTRASSE
private int code
private String name
public static StrassenTyp[] values()
for (StrassenTyp c : StrassenTyp.values()) System.out.println(c);
public static StrassenTyp 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 StrassenTyp getTyp(int gesuchterCode)
gesuchterCode
- der Code, für den ein StraßenknotenIllegalArgumentException
geworfen.public Integer getCode()
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.