|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
protected int |
compare(ObjectName name1,
ObjectName name2)
Compares two object names in ascending order. |
int |
compare(Object name1,
Object name2)
Compares two object names. |
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(Object name1,
Object name2)
compare in interface Comparatorname1 - the first name to be compared.name2 - the second name to be compared.
NullPointerException - for null names.
IllegalArgumentException - for invalid names.
ClassCastException - if parameters are not names.
protected int compare(ObjectName name1,
ObjectName name2)
name1 - the first name to be compared.name2 - the second name to be compared.
NullPointerException - for null names.protected String getSortKey()
protected boolean isIgnoreDomain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||