Package com.google.common.collect
Class StandardTable.ColumnKeyIterator
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<C>
-
- com.google.common.collect.StandardTable.ColumnKeyIterator
-
- All Implemented Interfaces:
java.util.Iterator<C>
- Enclosing class:
- StandardTable<R,C,V>
private class StandardTable.ColumnKeyIterator extends AbstractIterator<C>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Iterator<java.util.Map.Entry<C,V>>
entryIterator
(package private) java.util.Iterator<java.util.Map<C,V>>
mapIterator
(package private) java.util.Map<C,V>
seen
-
Constructor Summary
Constructors Modifier Constructor Description private
ColumnKeyIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected C
computeNext()
Returns the next element.-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
-
-
-
-
Method Detail
-
computeNext
protected C computeNext()
Description copied from class:AbstractIterator
Returns the next element. Note: the implementation must callAbstractIterator.endOfData()
when there are no elements left in the iteration. Failure to do so could result in an infinite loop.The initial invocation of
AbstractIterator.hasNext()
orAbstractIterator.next()
calls this method, as does the first invocation ofhasNext
ornext
following each successful call tonext
. Once the implementation either invokesendOfData
or throws an exception,computeNext
is guaranteed to never be called again.If this method throws an exception, it will propagate outward to the
hasNext
ornext
invocation that invoked this method. Any further attempts to use the iterator will result in anIllegalStateException
.The implementation of this method may not invoke the
hasNext
,next
, orAbstractIterator.peek()
methods on this instance; if it does, anIllegalStateException
will result.- Specified by:
computeNext
in classAbstractIterator<C>
- Returns:
- the next element if there was one. If
endOfData
was called during execution, the return value will be ignored.
-
-