Search this API

y.base
Class YList.ListCursorImpl

java.lang.Object
  extended by y.base.YList.ListCursorImpl
All Implemented Interfaces:
YCursor
Enclosing class:
YList

public class YList.ListCursorImpl
extends java.lang.Object
implements YCursor

Cursor implementation for class YList.

 

Constructor Summary
protected YList.ListCursorImpl()
           
 
Method Summary
 java.lang.Object current()
          Returns the object currently pointed on.
 void next()
          Moves this cursor one position forward.
 boolean ok()
          Returns true if the current cursor position is valid.
 void prev()
          Moves this cursor one position backward (optional).
 int size()
          Returns the number of elements that can be accessed with this cursor.
 void toFirst()
          Moves this cursor to the first valid cursor position (optional).
 void toLast()
          Moves this cursor to the last valid cursor position (optional).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YList.ListCursorImpl

protected YList.ListCursorImpl()
Method Detail

ok

public boolean ok()
Description copied from interface: YCursor
Returns true if the current cursor position is valid.

Specified by:
ok in interface YCursor

next

public void next()
Description copied from interface: YCursor
Moves this cursor one position forward.

Specified by:
next in interface YCursor

prev

public void prev()
Description copied from interface: YCursor
Moves this cursor one position backward (optional).

Specified by:
prev in interface YCursor

toFirst

public void toFirst()
Description copied from interface: YCursor
Moves this cursor to the first valid cursor position (optional).

Specified by:
toFirst in interface YCursor

toLast

public void toLast()
Description copied from interface: YCursor
Moves this cursor to the last valid cursor position (optional).

Specified by:
toLast in interface YCursor

size

public int size()
Description copied from interface: YCursor
Returns the number of elements that can be accessed with this cursor.

Specified by:
size in interface YCursor

current

public java.lang.Object current()
Description copied from interface: YCursor
Returns the object currently pointed on.

Specified by:
current in interface YCursor

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