Class MetaDataManagerImpl.InterfaceClassComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<java.lang.Class>
    Enclosing class:
    MetaDataManagerImpl

    private static class MetaDataManagerImpl.InterfaceClassComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.Class>, java.io.Serializable
    Simple comparator that orders the implementations of an interface so that the initial implementations are first, and the subclasses later.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Class cls1, java.lang.Class cls2)
      Method defining the ordering of objects.
      • 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

      • InterfaceClassComparator

        public InterfaceClassComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.Class cls1,
                           java.lang.Class cls2)
        Method defining the ordering of objects. Places all nulls at the end.
        Specified by:
        compare in interface java.util.Comparator<java.lang.Class>
        Parameters:
        cls1 - First class
        cls2 - Second class
        Returns:
        The comparison result