Class ClassNameComparator

  • All Implemented Interfaces:
    java.util.Comparator<JClass>

    public class ClassNameComparator
    extends java.lang.Object
    implements java.util.Comparator<JClass>
    Comparator object that sorts JClasses in the order of their names.
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Comparator<JClass> theInstance  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(JClass l, JClass r)  
      • 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

      • theInstance

        public static final java.util.Comparator<JClass> theInstance
    • Method Detail

      • compare

        public int compare​(JClass l,
                           JClass r)
        Specified by:
        compare in interface java.util.Comparator<JClass>