E - the element typepublic class CollectionIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
| Constructor and Description | 
|---|
| CollectionIterator(java.util.Collection<E> baseCol)Creates a CollectionIterator over the collection received in the baseCol
 parameter. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | hasNext()Checks for the existence of next value. | 
| boolean | isFirst()Returns true if the method  next()has not been used or has been used only once. | 
| boolean | isLast()Returns true if it is certain the next call to  hasNext()will return false. | 
| E | next()Access to the next value in the iterator and advance the iterator one element . | 
| void | remove()Removes from the underlying collection the last element returned by this iterator
 (optional operation). | 
public CollectionIterator(java.util.Collection<E> baseCol)
baseCol - the collection to iteratepublic boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>public boolean isFirst()
next() has not been used or has been used only once.public boolean isLast()
hasNext() will return false.Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa