Package org.openstreetmap.josm.command
Enum SplitWayCommand.Direction
- java.lang.Object
-
- java.lang.Enum<SplitWayCommand.Direction>
-
- org.openstreetmap.josm.command.SplitWayCommand.Direction
-
- All Implemented Interfaces:
Serializable
,Comparable<SplitWayCommand.Direction>
- Enclosing class:
- SplitWayCommand
static enum SplitWayCommand.Direction extends Enum<SplitWayCommand.Direction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKWARDS
FORWARDS
IRRELEVANT
UNKNOWN
-
Constructor Summary
Constructors Modifier Constructor Description private
Direction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitWayCommand.Direction
valueOf(String name)
Returns the enum constant of this type with the specified name.static SplitWayCommand.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORWARDS
public static final SplitWayCommand.Direction FORWARDS
-
BACKWARDS
public static final SplitWayCommand.Direction BACKWARDS
-
UNKNOWN
public static final SplitWayCommand.Direction UNKNOWN
-
IRRELEVANT
public static final SplitWayCommand.Direction IRRELEVANT
-
-
Constructor Detail
-
Direction
private Direction()
-
-
Method Detail
-
values
public static SplitWayCommand.Direction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SplitWayCommand.Direction c : SplitWayCommand.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitWayCommand.Direction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-