public enum Direction extends Enum<Direction>
Enum Constant and Description |
---|
BOTH
The Direction corresponding to the edges going from or to a vertex.
|
IN
The Direction corresponding to the edges going to a vertex.
|
OUT
The Direction corresponding to the edges going from a vertex.
|
Modifier and Type | Method and Description |
---|---|
Direction |
getOpposite()
Return the opposite direction of a particular Direction.
|
static Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction IN
public static final Direction OUT
public static final Direction BOTH
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 Direction getOpposite()
Copyright © 2014. All rights reserved.