Search this API

y.base
Interface NodeCursor

All Superinterfaces:
YCursor

public interface NodeCursor
extends YCursor

A cursor interface for iterating over nodes.

 

Method Summary
 void cyclicNext()
          Moves the cursor to the cyclic next element of the underlying sequence.
 void cyclicPrev()
          Moves the cursor to the cyclic previous element of the underlying sequence.
 Node node()
          Returns the node at the current location of the cursor.
 
Methods inherited from interface y.base.YCursor
current, next, ok, prev, size, toFirst, toLast
 

Method Detail

node

Node node()
Returns the node at the current location of the cursor. This method is the typed variant of YCursor.current().

Returns:
The node currently pointed to by this cursor.

cyclicNext

void cyclicNext()
Moves the cursor to the cyclic next element of the underlying sequence. This is the next element if available, else it is the first element.


cyclicPrev

void cyclicPrev()
Moves the cursor to the cyclic previous element of the underlying sequence. This is the previous element if available, else it is the last element.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.