int result = attr1.getName().compareTo( attr2.getName() ); if ( result == 0 ) { result = attr1.getValue().toString().compareTo( attr2.getValue().toString() ); } return( result );
return( other instanceof AttributeComparator );