public enum Direction extends Enum<Direction>
Direction is used to denote the direction of an Edge or location of a Vertex on an
 Edge. For example:
 
 gremlin--knows-->rexsteris an
OUT Edge for Gremlin and an IN edge for Rexster. Moreover, given
 that Edge, Gremlin is the OUT Vertex and Rexster is the IN
 Vertex.| Enum Constant and Description | 
|---|
| BOTH | 
| INRefers to an incoming direction. | 
| OUTRefers to an outgoing direction. | 
| Modifier and Type | Method and Description | 
|---|---|
| Direction | opposite()Produce the opposite representation of the current  Directionenum. | 
| 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 OUT
public static final Direction IN
public static final Direction BOTH
public static final Direction[] proper
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 opposite()
Direction enum.Copyright © 2013–2017 Apache Software Foundation. All rights reserved.