|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.annotation.NodeImpl
Provides an implementation for the interface gate.Node.
Constructor Summary | |
NodeImpl(Integer id)
Construction from id. |
|
NodeImpl(Integer id,
Long offset)
Construction from id and offset. |
Method Summary | |
int |
compareTo(Object o)
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NodeImpl(Integer id)
public NodeImpl(Integer id, Long offset)
id
- the Id of the new nodeoffset
- the (temporal) offset of the Node; Should be null
for non-anchored nodes.Method Detail |
public Integer getId()
getId
in interface IdBearer
public Long getOffset()
getOffset
in interface Node
public String toString()
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |