public class NodeImpl extends Object implements Node, Comparable<Node>
Constructor and Description |
---|
NodeImpl(Integer id)
Construction from id.
|
NodeImpl(Integer id,
Long offset)
Construction from id and offset.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Node other)
Ordering
|
Integer |
getId()
Returns the Id of the Node.
|
Long |
getOffset()
Offset (will be null when the node is not anchored)
|
String |
toString()
String representation
|
public NodeImpl(Integer id)
public Long getOffset()
public int compareTo(Node other) throws ClassCastException
compareTo
in interface Comparable<Node>
ClassCastException
Copyright © 2024 GATE. All rights reserved.