public enum Direction extends Enum<Direction>
Java class for direction.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="direction">
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="fromKey"/>
<enumeration value="toKey"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static Direction |
fromValue(String v) |
String |
value() |
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 FROM_KEY
public static final Direction TO_KEY
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 String value()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.