FileDocCategorySizeDatePackage
MethodComparator.javaAPI DocGlassfish v2 API2841Fri May 04 22:31:06 BST 2007com.sun.appserv.management.util.misc

MethodComparator

public final class MethodComparator extends Object implements Comparator
Caution: this Comparator may be inconsistent with equals() because it ignores the description.

Fields Summary
public static final MethodComparator
INSTANCE
Constructors Summary
private MethodComparator()

	
			
Methods Summary
public intcompare(java.lang.reflect.Method m1, java.lang.reflect.Method m2)

		int	result	= m1.getName().compareTo( m2.getName() );
		if ( result == 0 )
		{
			result	= m1.toString().compareTo( m2.toString() );
		}
		
		return( result );
	
public booleanequals(java.lang.Object other)

		return( other instanceof MethodComparator );