| Constructor and Description |
|---|
MappingIterable(Mapper<T,ID> mapper,
Iterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
Iterator<T> |
iterator()
Returns an iterator over a set of elements of type T.
|
T |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by this iterator (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingpublic boolean hasNext()
true if the iteration has more elements. (In other words, returns true if next() would return
an element rather than throwing an exception.)public T next()
public void remove()
next(). The behavior of an iterator is unspecified if the underlying collection is
modified while the iteration is in progress in any way other than by calling this method.remove in interface Iterator<T>UnsupportedOperationException - if the remove operation is not supported by this iteratorIllegalStateException - if the next method has not yet been called, or the remove method has
already been called after the last call to the next methodCopyright © 2014 Wadpam. All Rights Reserved.