Package org.glassfish.admin.amx.util.jmx
Class MBeanAttributeInfoComparator
- java.lang.Object
-
- org.glassfish.admin.amx.util.jmx.MBeanAttributeInfoComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<MBeanAttributeInfo>
public final class MBeanAttributeInfoComparator extends Object implements Comparator<MBeanAttributeInfo>, Serializable
Caution: this Comparator may be inconsistent with equals() because it ignores the description.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static MBeanAttributeInfoComparator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(MBeanAttributeInfo o1, MBeanAttributeInfo o2)
boolean
equals(Object other)
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final MBeanAttributeInfoComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(MBeanAttributeInfo o1, MBeanAttributeInfo o2)
- Specified by:
compare
in interfaceComparator<MBeanAttributeInfo>
-
equals
public boolean equals(Object other)
- Specified by:
equals
in interfaceComparator<MBeanAttributeInfo>
- Overrides:
equals
in classObject
-
-