| 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.bidimap | |
| org.apache.commons.collections4.iterators |
This package contains implementations of the
Iterator interface.
|
| org.apache.commons.collections4.map |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ResettableListIterator<E>
Defines a list iterator that can be reset back to an initial state.
|
| Modifier and Type | Field and Description |
|---|---|
static ResettableIterator |
IteratorUtils.EMPTY_ITERATOR
An iterator over no elements.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(E... array)
Gets an iterator over an object array.
|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(E[] array, int start)
Gets an iterator over the end part of an object array.
|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(E[] array, int start, int end)
Gets an iterator over part of an object array.
|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(Object
Gets an iterator over an object or primitive array.
|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(Object
Gets an iterator over the end part of an object or primitive array.
|
static <E> ResettableIterator |
IteratorUtils.arrayIterator(Object
Gets an iterator over part of an object or primitive array.
|
static <E> ResettableIterator |
IteratorUtils.emptyIterator()
Gets an empty iterator.
|
static <E> ResettableIterator |
IteratorUtils.loopingIterator(Collection
Gets an iterator that loops continuously over the supplied collection.
|
static <E> ResettableIterator |
IteratorUtils.singletonIterator(E object)
Gets a singleton iterator.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDualBidiMap
Inner class MapIterator.
|
protected static class |
DualTreeBidiMap
Inner class MapIterator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayIterator<E>
Implements an
Iterator over any array.
|
class |
ArrayListIterator<E>
Implements a
ListIterator over an array.
|
class |
EmptyIterator<E>
Provides an implementation of an empty iterator.
|
class |
EmptyListIterator<E>
Provides an implementation of an empty list iterator.
|
class |
EmptyMapIterator<K
Provides an implementation of an empty map iterator.
|
class |
EmptyOrderedIterator<E>
Provides an implementation of an empty ordered iterator.
|
class |
EmptyOrderedMapIterator<K
Provides an implementation of an empty ordered map iterator.
|
class |
EntrySetMapIterator<K
Implements a
MapIterator using a Map entrySet.
|
class |
ListIteratorWrapper<E>
Converts an
Iterator into a
ResettableListIterator.
|
class |
LoopingIterator<E>
An Iterator that restarts when it reaches the end.
|
class |
LoopingListIterator<E>
A ListIterator that restarts when it reaches the end or when it reaches the beginning.
|
class |
ObjectArrayIterator<E>
An
Iterator over an array of objects.
|
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 |
SingletonIterator<E>
SingletonIterator is an
Iterator over a single object instance.
|
class |
SingletonListIterator<E>
SingletonIterator is an
ListIterator over a single object instance.
|
| Modifier and Type | Field and Description |
|---|---|
static ResettableIterator |
EmptyIterator.RESETTABLE_INSTANCE
Singleton instance of the iterator.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> ResettableIterator |
EmptyIterator.resettableEmptyIterator()
Get a typed resettable empty iterator instance.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractLinkedMap
EntrySet iterator.
|
protected static class |
AbstractLinkedMap
KeySet iterator.
|
protected static class |
AbstractLinkedMap
MapIterator implementation.
|
protected static class |
AbstractLinkedMap
Values iterator.
|
protected static class |
AbstractSortedMapDecorator
OrderedMapIterator implementation.
|
class |
EntrySetToMapIteratorAdapter<K
Adapts a Map entrySet to the MapIterator interface.
|