Package com.google.common.geometry
Class S2CellIndex.NonEmptyRangeIterator
- java.lang.Object
-
- com.google.common.geometry.S2CellIndex.RangeIterator
-
- com.google.common.geometry.S2CellIndex.NonEmptyRangeIterator
-
- Enclosing class:
- S2CellIndex
public class S2CellIndex.NonEmptyRangeIterator extends S2CellIndex.RangeIterator
AsS2CellIndex.RangeIteratorbut only visits range nodes that overlap (cellId, label) pairs.
-
-
Constructor Summary
Constructors Constructor Description NonEmptyRangeIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()Positions this iterator at the first range of leaf cells (if any).voidnext()Advances the iterator to the next range of leaf cells.booleanprev()Returns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.voidseek(S2CellId target)Positions the iterator at the range containing "target".
-
-
-
Method Detail
-
begin
public void begin()
Description copied from class:S2CellIndex.RangeIteratorPositions this iterator at the first range of leaf cells (if any).- Overrides:
beginin classS2CellIndex.RangeIterator
-
next
public void next()
Description copied from class:S2CellIndex.RangeIteratorAdvances the iterator to the next range of leaf cells.- Overrides:
nextin classS2CellIndex.RangeIterator
-
prev
public boolean prev()
Description copied from class:S2CellIndex.RangeIteratorReturns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.- Overrides:
previn classS2CellIndex.RangeIterator
-
seek
public void seek(S2CellId target)
Description copied from class:S2CellIndex.RangeIteratorPositions the iterator at the range containing "target". Such a range exists as long as the target is a valid leaf cell.- Overrides:
seekin classS2CellIndex.RangeIterator- Parameters:
target- a valid leaf (level 30) cell to seek to
-
-