|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.param.SortedParameterNameIndexComparator
public class SortedParameterNameIndexComparator
A comparator that is used to sort ParameterNameIndex objects. This comparator sorts based on its
name.
| Constructor Summary | |
|---|---|
SortedParameterNameIndexComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(org.rhq.enterprise.communications.command.param.ParameterNameIndex o1,
org.rhq.enterprise.communications.command.param.ParameterNameIndex o2)
Given two ParameterNameIndex objects, this will compare their
indices. |
| 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 SortedParameterNameIndexComparator()
| Method Detail |
|---|
public int compare(org.rhq.enterprise.communications.command.param.ParameterNameIndex o1,
org.rhq.enterprise.communications.command.param.ParameterNameIndex o2)
ParameterNameIndex objects, this will compare their
indices. This allows you to sort parameters based on their sort indices.
Both o1 and o2 must be of type ParameterNameIndex - a
ClassCastException is thrown otherwise, as per the Comparator.compare interface contract.
compare in interface java.util.Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||