Enum S2ShapeIndex.CellRelation

java.lang.Object
java.lang.Enum<S2ShapeIndex.CellRelation>
com.google.common.geometry.S2ShapeIndex.CellRelation
All Implemented Interfaces:
Serializable, Comparable<S2ShapeIndex.CellRelation>, java.lang.constant.Constable
Enclosing class:
S2ShapeIndex

public static enum S2ShapeIndex.CellRelation extends Enum<S2ShapeIndex.CellRelation>
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".
  • Enum Constant Details

  • Constructor Details

    • CellRelation

      private CellRelation()
  • Method Details

    • values

      public static S2ShapeIndex.CellRelation[] 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

      public static S2ShapeIndex.CellRelation valueOf(String name)
      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 name
      NullPointerException - if the argument is null