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
As
S2CellIndex.RangeIterator but only visits range nodes that overlap (cellId, label) pairs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()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.voidPositions the iterator at the range containing "target".
-
Constructor Details
-
NonEmptyRangeIterator
public NonEmptyRangeIterator()
-
-
Method Details
-
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
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
-