almost.functional.utils
E - the type of elements returned by this iteratorpublic abstract class ImmutableIterator<E> extends java.lang.Object implements java.util.Iterator<E>
| Constructor and Description |
|---|
ImmutableIterator() |
| Modifier and Type | Method and Description |
|---|---|
static <E> ImmutableIterator<E> |
makeImmutable(java.util.Iterator<E> iterator)
Make an iterator immutable.
|
void |
remove() |
public static <E> ImmutableIterator<E> makeImmutable(java.util.Iterator<E> iterator)
E - the type the iterator returnsiterator - the iteratorpublic void remove()
remove in interface java.util.Iterator<E>java.lang.UnsupportedOperationException