Java EE 5 SDK

com.sun.appserv.management.util.misc
Class MethodComparator

java.lang.Object
  extended by com.sun.appserv.management.util.misc.MethodComparator
All Implemented Interfaces:
Comparator<Method>

public final class MethodComparator
extends Object
implements Comparator<Method>

Caution: this Comparator may be inconsistent with equals() because it ignores the description.


Field Summary
static MethodComparator INSTANCE
           
 
Method Summary
 int compare(Method m1, Method m2)
           
 boolean equals(Object other)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MethodComparator INSTANCE
Method Detail

compare

public int compare(Method m1,
                   Method m2)
Specified by:
compare in interface Comparator<Method>

equals

public boolean equals(Object other)
Specified by:
equals in interface Comparator<Method>
Overrides:
equals in class Object

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.