org.apache.commons.collections.list

Class CursorableLinkedList.SubCursor

protected static class CursorableLinkedList.SubCursor extends CursorableLinkedList.Cursor

A cursor for the sublist based on LinkedSubListIterator.

Since: Commons Collections 3.2

Field Summary
protected LinkedSubListsub
The parent list
Constructor Summary
protected SubCursor(LinkedSubList sub, int index)
Constructs a new cursor.
Method Summary
voidadd(Object obj)
booleanhasNext()
booleanhasPrevious()
intnextIndex()
voidremove()

Field Detail

sub

protected final LinkedSubList sub
The parent list

Constructor Detail

SubCursor

protected SubCursor(LinkedSubList sub, int index)
Constructs a new cursor.

Parameters: index the index to start from

Method Detail

add

public void add(Object obj)

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

nextIndex

public int nextIndex()

remove

public void remove()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.