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.RangeIterator
but 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 void
begin()
Positions this iterator at the first range of leaf cells (if any).void
next()
Advances the iterator to the next range of leaf cells.boolean
prev()
Returns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.void
seek(S2CellId target)
Positions the iterator at the range containing "target".
-
-
-
Method Detail
-
begin
public void begin()
Description copied from class:S2CellIndex.RangeIterator
Positions this iterator at the first range of leaf cells (if any).- Overrides:
begin
in classS2CellIndex.RangeIterator
-
next
public void next()
Description copied from class:S2CellIndex.RangeIterator
Advances the iterator to the next range of leaf cells.- Overrides:
next
in classS2CellIndex.RangeIterator
-
prev
public boolean prev()
Description copied from class:S2CellIndex.RangeIterator
Returns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.- Overrides:
prev
in classS2CellIndex.RangeIterator
-
seek
public void seek(S2CellId target)
Description copied from class:S2CellIndex.RangeIterator
Positions the iterator at the range containing "target". Such a range exists as long as the target is a valid leaf cell.- Overrides:
seek
in classS2CellIndex.RangeIterator
- Parameters:
target
- a valid leaf (level 30) cell to seek to
-
-