Package com.google.common.geometry
Class S2ShapeIndex.Cell.MultiCell
- java.lang.Object
-
- com.google.common.geometry.S2ShapeIndex.Cell
-
- com.google.common.geometry.S2ShapeIndex.Cell.MultiCell
-
- All Implemented Interfaces:
S2Iterator.Entry,java.io.Serializable
- Enclosing class:
- S2ShapeIndex.Cell
private static final class S2ShapeIndex.Cell.MultiCell extends S2ShapeIndex.Cell
A specialization of Cell for multiple shapes per cell. Last resort, largest-memory implementation that is not used very often.
-
-
Field Summary
Fields Modifier and Type Field Description private S2ShapeIndex.S2ClippedShape[]clippedShapes
-
Constructor Summary
Constructors Constructor Description MultiCell(S2ShapeIndex.S2ClippedShape[] shapes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S2ShapeIndex.S2ClippedShapeclipped(int i)Returns the clipped shape at the given index.intnumShapes()Returns the number of clipped shapes in this cell.-
Methods inherited from class com.google.common.geometry.S2ShapeIndex.Cell
create, findClipped, id
-
-
-
-
Field Detail
-
clippedShapes
private final S2ShapeIndex.S2ClippedShape[] clippedShapes
-
-
Constructor Detail
-
MultiCell
MultiCell(S2ShapeIndex.S2ClippedShape[] shapes)
-
-
Method Detail
-
numShapes
public int numShapes()
Description copied from class:S2ShapeIndex.CellReturns the number of clipped shapes in this cell.- Specified by:
numShapesin classS2ShapeIndex.Cell
-
clipped
public S2ShapeIndex.S2ClippedShape clipped(int i)
Description copied from class:S2ShapeIndex.CellReturns the clipped shape at the given index.- Specified by:
clippedin classS2ShapeIndex.Cell- Parameters:
i- must be at least 0 and less thanS2ShapeIndex.Cell.numShapes()
-
-