org.sape.carbon.services.management.interceptor
Class DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator

java.lang.Object
  |
  +--org.sape.carbon.services.management.interceptor.DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator
All Implemented Interfaces:
Comparator
Enclosing class:
DefaultManagementInterceptorImpl

public static class DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator
extends Object
implements Comparator

This comporator may be used to order all types of MBeanFeatureInfo objects by name.

Since:
carbon 2.0

Constructor Summary
DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compares two MBeanFeatureInfo objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator

public DefaultManagementInterceptorImpl.MBeanFeatureInfoComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares two MBeanFeatureInfo objects.

Specified by:
compare in interface Comparator
Parameters:
o1 - the first object to be compared.
o2 - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Throws:
ClassCastException - if the arguments' types prevent them from being compared by this Comparator.


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.