Package | Description |
---|---|
org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
org.apache.commons.collections4.iterators |
This package contains implementations of the
Iterator interface. |
Modifier and Type | Field and Description |
---|---|
static ResettableListIterator |
IteratorUtils.EMPTY_LIST_ITERATOR
A list iterator over no elements.
|
Modifier and Type | Method and Description |
---|---|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(E... array)
Gets a list iterator over an object array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(E[] array,
int start)
Gets a list iterator over the end part of an object array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(E[] array,
int start,
int end)
Gets a list iterator over part of an object array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(Object array)
Gets a list iterator over an object or primitive array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(Object array,
int start)
Gets a list iterator over the end part of an object or primitive array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.arrayListIterator(Object array,
int start,
int end)
Gets a list iterator over part of an object or primitive array.
|
static <E> ResettableListIterator<E> |
IteratorUtils.emptyListIterator()
Gets an empty list iterator.
|
static <E> ResettableListIterator<E> |
IteratorUtils.loopingListIterator(List<E> list)
Gets an iterator that loops continuously over the supplied list.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayListIterator<E>
Implements a
ListIterator over an array. |
class |
EmptyListIterator<E>
Provides an implementation of an empty list iterator.
|
class |
ListIteratorWrapper<E>
Converts an
Iterator into a ResettableListIterator . |
class |
LoopingListIterator<E>
A ListIterator that restarts when it reaches the end or when it
reaches the beginning.
|
class |
ObjectArrayListIterator<E>
Implements a
ListIterator over an array of objects. |
class |
ReverseListIterator<E>
Iterates backwards through a List, starting with the last element
and continuing to the first.
|
class |
SingletonListIterator<E>
SingletonIterator is an ListIterator over a single
object instance. |
Modifier and Type | Field and Description |
---|---|
static ResettableListIterator |
EmptyListIterator.RESETTABLE_INSTANCE
Singleton instance of the iterator.
|
Modifier and Type | Method and Description |
---|---|
static <E> ResettableListIterator<E> |
EmptyListIterator.resettableEmptyListIterator()
Get a typed instance of the iterator.
|
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.