Package com.google.common.collect
Class StandardTable.Column.EntrySetIterator
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<java.util.Map.Entry<R,V>>
-
- com.google.common.collect.StandardTable.Column.EntrySetIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<R,V>>
- Enclosing class:
- StandardTable.Column
private class StandardTable.Column.EntrySetIterator extends AbstractIterator<java.util.Map.Entry<R,V>>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEntrySetIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map.Entry<R,V>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 java.util.Map.Entry<R,V> computeNext()
Description copied from class:AbstractIteratorReturns 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 ofhasNextornextfollowing each successful call tonext. Once the implementation either invokesendOfDataor throws an exception,computeNextis guaranteed to never be called again.If this method throws an exception, it will propagate outward to the
hasNextornextinvocation 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, anIllegalStateExceptionwill result.- Specified by:
computeNextin classAbstractIterator<java.util.Map.Entry<R,V>>- Returns:
- the next element if there was one. If
endOfDatawas called during execution, the return value will be ignored.
-
-