Class InheritanceComparator

    • Constructor Detail

      • InheritanceComparator

        public InheritanceComparator()
    • Method Detail

      • setBase

        public void setBase​(Class base)
        Set the least-derived type possible; defaults to null.
      • getBase

        public Class getBase()
      • toClass

        protected Class toClass​(Object elem)
        Subclasses can override this method to extract the class to compare on from the elements of the collection.