com.sun.codemodel.util
Class ClassNameComparator

java.lang.Object
  extended by com.sun.codemodel.util.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
static java.util.Comparator<JClass> theInstance
           
 
Method Summary
 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
 

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>


Copyright © 2005-2011 Sun Microsystems. All Rights Reserved.