Package com.google.common.collect
Class Iterators.ArrayItr<T>
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<E>
-
- com.google.common.collect.UnmodifiableListIterator<E>
-
- com.google.common.collect.AbstractIndexedListIterator<T>
-
- com.google.common.collect.Iterators.ArrayItr<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
,java.util.ListIterator<T>
- Enclosing class:
- Iterators
private static final class Iterators.ArrayItr<T> extends AbstractIndexedListIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description private T[]
array
(package private) static UnmodifiableListIterator<java.lang.Object>
EMPTY
private int
offset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
get(int index)
Returns the element with the specified index.-
Methods inherited from class com.google.common.collect.AbstractIndexedListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex
-
Methods inherited from class com.google.common.collect.UnmodifiableListIterator
add, set
-
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
-
-
-
-
Field Detail
-
EMPTY
static final UnmodifiableListIterator<java.lang.Object> EMPTY
-
array
private final T[] array
-
offset
private final int offset
-
-
Constructor Detail
-
ArrayItr
ArrayItr(T[] array, int offset, int length, int index)
-
-
Method Detail
-
get
protected T get(int index)
Description copied from class:AbstractIndexedListIterator
Returns the element with the specified index. This method is called byAbstractIndexedListIterator.next()
.- Specified by:
get
in classAbstractIndexedListIterator<T>
-
-