public class SortedParameterNameIndexComparator extends Object implements Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>, Serializable
ParameterNameIndex objects. This comparator sorts based on its
name.| Constructor and Description |
|---|
SortedParameterNameIndexComparator() |
| Modifier and Type | Method and Description |
|---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic 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 Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>Comparator.compare(java.lang.Object, java.lang.Object)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.