|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.util.ObjectNameComparator
public class ObjectNameComparator
A comparator for object names of MBeans.
Constructor Summary | |
---|---|
ObjectNameComparator()
Constructs a new comparator. |
|
ObjectNameComparator(String key)
Constructs a new comparator with a sort key. |
|
ObjectNameComparator(String key,
boolean ign)
Constructs a new comparator with a sort key. |
Method Summary | |
---|---|
int |
compare(ObjectName name1,
ObjectName name2)
|
protected String |
getSortKey()
Gets the sort key. |
protected boolean |
isIgnoreDomain()
Checks ignore domain. |
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 |
---|
public ObjectNameComparator()
public ObjectNameComparator(String key)
key
- the sort key.public ObjectNameComparator(String key, boolean ign)
key
- the sort key.ign
- if true, ignore domain.Method Detail |
---|
public int compare(ObjectName name1, ObjectName name2)
compare
in interface Comparator<ObjectName>
protected String getSortKey()
protected boolean isIgnoreDomain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |