Package com.landawn.abacus.util
Class ImmutableListIterator<T>
java.lang.Object
com.landawn.abacus.util.ImmutableListIterator<T>
- All Implemented Interfaces:
Immutable
,Iterator<T>
,ListIterator<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.- UnsupportedOperationExceptionstatic <T> ImmutableListIterator<T>
empty()
static <T> ImmutableListIterator<T>
of
(ListIterator<? extends T> iter) void
remove()
Deprecated.- UnsupportedOperationExceptionvoid
Deprecated.- UnsupportedOperationException<C extends Collection<T>>
CtoCollection
(Supplier<? extends C> supplier) toSet()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
-
Constructor Details
-
ImmutableListIterator
public ImmutableListIterator()
-
-
Method Details
-
empty
- Type Parameters:
T
-- Returns:
-
of
- Type Parameters:
T
-- Parameters:
iter
-- Returns:
-
set
Deprecated.- UnsupportedOperationException- Specified by:
set
in interfaceListIterator<T>
- Throws:
UnsupportedOperationException
-
add
Deprecated.- UnsupportedOperationException- Specified by:
add
in interfaceListIterator<T>
- Throws:
UnsupportedOperationException
-
remove
Deprecated.- UnsupportedOperationException- Specified by:
remove
in interfaceIterator<T>
- Throws:
UnsupportedOperationException
-
toSet
-
toCollection
- Type Parameters:
C
-- Parameters:
supplier
-- Returns:
-
toImmutableList
-
toImmutableSet
-