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

AttributeComparator

public final class AttributeComparator extends Object implements Comparator

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

	
			
Methods Summary
public intcompare(javax.management.Attribute attr1, javax.management.Attribute attr2)

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

		return( other instanceof AttributeComparator );