Enum S2ShapeIndex.CellRelation

  • All Implemented Interfaces:
    Serializable, Comparable<S2ShapeIndex.CellRelation>
    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".
    • Method Detail

      • values

        public static S2ShapeIndex.CellRelation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (S2ShapeIndex.CellRelation c : S2ShapeIndex.CellRelation.values())
            System.out.println(c);
        
        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