Class S2CellIndex.CellIterator
java.lang.Object
com.google.common.geometry.S2CellIndex.CellIterator
- Enclosing class:
S2CellIndex
An iterator over all (cellId, label) pairs in an unspecified order.
-
Method Summary
Modifier and TypeMethodDescriptioncellId()Returns the S2CellId of the current (cellId, label) pair.booleandone()Returns true if all (cellId, label) pairs have been visited.intlabel()Returns the label of the current (cellId, label) pair.voidnext()Advances this iterator to the next (cellId, label) pair.
-
Method Details
-
cellId
Returns the S2CellId of the current (cellId, label) pair. -
label
public int label()Returns the label of the current (cellId, label) pair. -
done
public boolean done()Returns true if all (cellId, label) pairs have been visited. -
next
public void next()Advances this iterator to the next (cellId, label) pair.
-