org.xcmis.spi
Interface ItemsIterator<T>

Type Parameters:
T -
All Superinterfaces:
Iterator<T>
All Known Implementing Classes:
BaseItemsIterator, LazyIterator

public interface ItemsIterator<T>
extends Iterator<T>

Common iterator for CMIS items.

Version:
$Id: ItemsIterator.java 316 2010-03-09 15:20:28Z andrew00x $
Author:
Andrey Parfonov

Method Summary
 int size()
          Get total number of items in iterator.
 void skip(int skip)
          Skip specified number of element in collection.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

skip

void skip(int skip)
          throws NoSuchElementException
Skip specified number of element in collection.

Parameters:
skip - the number of items to skip
Throws:
NoSuchElementException - if skipped past the last item in the iterator

size

int size()
Get total number of items in iterator. If not able determine number of items then -1 will be returned.

Returns:
number of items or -1


Copyright © 2011 eXo Platform SAS. All Rights Reserved.