Class TopologicalShapeSort.CycleException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    TopologicalShapeSort

    public static final class TopologicalShapeSort.CycleException
    extends java.lang.RuntimeException
    Thrown when cycles exist between shapes.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CycleException​(java.util.Set<ShapeId> unresolved, java.util.List<ShapeId> resolved)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ShapeId> getResolved()  
      java.util.Set<ShapeId> getUnresolved()
      Gets the entire set of shapes that could not be resolved.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CycleException

        public CycleException​(java.util.Set<ShapeId> unresolved,
                              java.util.List<ShapeId> resolved)
    • Method Detail

      • getUnresolved

        public java.util.Set<ShapeId> getUnresolved()
        Gets the entire set of shapes that could not be resolved.
        Returns:
        Returns the set of unresolved shapes.
      • getResolved

        public java.util.List<ShapeId> getResolved()
        Returns:
        Returns the set of resolved shapes.