org.xcmis.spi
Class BaseItemsIterator<T>
java.lang.Object
org.xcmis.spi.BaseItemsIterator<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- Iterator<T>, ItemsIterator<T>
public class BaseItemsIterator<T>
- extends Object
- implements ItemsIterator<T>
- Version:
- $Id: BaseItemsIterator.java 316 2010-03-09 15:20:28Z andrew00x $
- Author:
- Andrey Parfonov
|
Method Summary |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
int |
size()
Get total number of items in iterator. |
void |
skip(int skip)
Skip specified number of element in collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseItemsIterator
public BaseItemsIterator(Collection<T> list)
- Parameters:
list - source collection
hasNext
public boolean hasNext()
-
- Specified by:
hasNext in interface Iterator<T>
next
public T next()
-
- Specified by:
next in interface Iterator<T>
remove
public void remove()
-
- Specified by:
remove in interface Iterator<T>
size
public int size()
- Get total number of items in iterator. If not able determine number of
items then -1 will be returned.
- Specified by:
size in interface ItemsIterator<T>
- Returns:
- number of items or -1
skip
public void skip(int skip)
throws NoSuchElementException
- Skip specified number of element in collection.
- Specified by:
skip in interface ItemsIterator<T>
- Parameters:
skip - the number of items to skip
- Throws:
NoSuchElementException - if skipped past the last item in the
iterator
Copyright © 2011 eXo Platform SAS. All Rights Reserved.