Class S2EdgeQuery.ShapeEdges

  • All Implemented Interfaces:
    S2EdgeQuery.Edges
    Enclosing class:
    S2EdgeQuery

    public static final class S2EdgeQuery.ShapeEdges
    extends java.lang.Object
    implements S2EdgeQuery.Edges
    An Edges that contains all the edges of a shape with the given number of edges.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int edgeIndex  
      private int numEdges  
    • Constructor Summary

      Constructors 
      Constructor Description
      ShapeEdges​(int numEdges)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()
      Returns true if there are no more edges.
      int nextEdge()
      Returns the next edge ID, or throws an exception if empty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • edgeIndex

        private int edgeIndex
      • numEdges

        private final int numEdges
    • Constructor Detail

      • ShapeEdges

        ShapeEdges​(int numEdges)