Package com.google.common.geometry
Enum S2ShapeIndex.CellRelation
- All Implemented Interfaces:
Serializable
,Comparable<S2ShapeIndex.CellRelation>
,java.lang.constant.Constable
- Enclosing class:
S2ShapeIndex
The possible relationships between a "target" cell and the cells of the S2ShapeIndex. If the
target is an index cell or is contained by an index cell, it is "INDEXED". If the target is
subdivided into one or more index cells, it is "SUBDIVIDED". Otherwise it is "DISJOINT".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTarget does not intersect any index cells.Target is contained by an index cell.Target is subdivided into one or more index cells. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic S2ShapeIndex.CellRelation
Returns the enum constant of this type with the specified name.static S2ShapeIndex.CellRelation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INDEXED
Target is contained by an index cell. -
SUBDIVIDED
Target is subdivided into one or more index cells. -
DISJOINT
Target does not intersect any index cells.
-
-
Constructor Details
-
CellRelation
private CellRelation()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-