public enum LinkDirection extends java.lang.Enum<LinkDirection>
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
!None
|
boolean |
in()
Any || In
|
LinkDirection |
opposite()
Returns the opposing direction:
opposite(None)=None
opposite(In)=Out
opposite(Out)=In
opposite(Any)=Any
|
boolean |
out()
Any || out
|
static LinkDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LinkDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkDirection None
public static final LinkDirection In
public static final LinkDirection Out
public static final LinkDirection Any
public static LinkDirection[] values()
for (LinkDirection c : LinkDirection.values()) System.out.println(c);
public static LinkDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean exists()
public boolean out()
public boolean in()
public LinkDirection opposite()