Class MetaDataInheritanceComparator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object o1, java.lang.Object o2)  
      protected java.lang.Class toClass​(java.lang.Object elem)
      Subclasses can override this method to extract the class to compare on from the elements of the collection.
      • 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
    • Constructor Detail

      • MetaDataInheritanceComparator

        public MetaDataInheritanceComparator()
    • Method Detail

      • toClass

        protected java.lang.Class toClass​(java.lang.Object elem)
        Description copied from class: InheritanceComparator
        Subclasses can override this method to extract the class to compare on from the elements of the collection.
        Overrides:
        toClass in class InheritanceComparator
      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Specified by:
        compare in interface java.util.Comparator
        Overrides:
        compare in class InheritanceComparator