Class GraphOutputDot.TopNodeSort

  • All Implemented Interfaces:
    java.util.Comparator<Node>
    Enclosing class:
    GraphOutputDot

    private static class GraphOutputDot.TopNodeSort
    extends java.lang.Object
    implements java.util.Comparator<Node>
    Comparator that makes the 'undeployed' node the first node in the sort list. This makes the 'undeployed' node show up at the top of the generated graph.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.text.Collator collator  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TopNodeSort()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Node o1, Node o2)  
      private java.text.CollationKey toKey​(Node node)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • collator

        private java.text.Collator collator
    • Constructor Detail

      • TopNodeSort

        private TopNodeSort()
    • Method Detail

      • compare

        public int compare​(Node o1,
                           Node o2)
        Specified by:
        compare in interface java.util.Comparator<Node>
      • toKey

        private java.text.CollationKey toKey​(Node node)