@Immutable public final class Reference extends Object
| Constructor and Description |
|---|
Reference(String id,
Orientation orientation)
Create a new reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId()
Return the identifier for this reference.
|
Orientation |
getOrientation()
Return the orientation for this reference.
|
int |
hashCode() |
boolean |
isForwardOrientation()
Return true if the orientation for this reference is
Orientation.FORWARD. |
boolean |
isReverseOrientation()
Return true if the orientation for this reference is
Orientation.REVERSE. |
String |
splitToString()
Return this reference as a string split by the tab character.
|
static Reference |
splitValueOf(String id,
String orientation)
Parse a reference from the specified values.
|
String |
toString() |
static Reference |
valueOf(String value)
Parse a reference from the specified value.
|
public Reference(String id, Orientation orientation)
id - identifier, must not be nullorientation - orientation, must not be nullpublic String getId()
public Orientation getOrientation()
public boolean isForwardOrientation()
Orientation.FORWARD.Orientation.FORWARDpublic boolean isReverseOrientation()
Orientation.REVERSE.Orientation.REVERSEpublic String splitToString()
public static Reference valueOf(String value)
value - value, must not be nullCopyright © 2013–2020 dishevelled.org. All rights reserved.