FileDocCategorySizeDatePackage
MBeanAttributeInfoComparator.javaAPI DocGlassfish v2 API3106Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx

MBeanAttributeInfoComparator

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

Fields Summary
private static final com.sun.appserv.management.util.jmx.stringifier.MBeanAttributeInfoStringifier
ATTRIBUTE_INFO_STRINGIFIER
public static final MBeanAttributeInfoComparator
INSTANCE
Constructors Summary
private MBeanAttributeInfoComparator()

	
			
Methods Summary
public intcompare(javax.management.MBeanAttributeInfo o1, javax.management.MBeanAttributeInfo o2)

		final String	s1	= ATTRIBUTE_INFO_STRINGIFIER.stringify( o1 );
		final String	s2	= ATTRIBUTE_INFO_STRINGIFIER.stringify( o2 );
		
		return( s1.compareTo( s2 ) );
	
public booleanequals(java.lang.Object other)

		return( other instanceof MBeanAttributeInfoComparator );