public enum CompassDirection extends Enum<CompassDirection> implements Direction
Copyright (c) 2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.opentrafficsim.org.
The OpenTrafficSim project is distributed under the following BSD-style license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
| Modifier and Type | Method and Description |
|---|---|
static CompassDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompassDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompassDirection NORTH
public static final CompassDirection SOUTH
public static final CompassDirection EAST
public static final CompassDirection WEST
public static CompassDirection[] values()
for (CompassDirection c : CompassDirection.values()) System.out.println(c);
public static CompassDirection 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 nullCopyright © 2002–2014 Delft University of Technology. All rights reserved.