org.rhq.enterprise.communications.command.param
Class SortedParameterNameIndexComparator
java.lang.Object
org.rhq.enterprise.communications.command.param.SortedParameterNameIndexComparator
- All Implemented Interfaces:
- Serializable, Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>
public class SortedParameterNameIndexComparator
- extends Object
- implements Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>, Serializable
A comparator that is used to sort ParameterNameIndex objects. This comparator sorts based on its
name.
- Author:
- John Mazzitelli
- See Also:
- Serialized Form
|
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 |
SortedParameterNameIndexComparator
public SortedParameterNameIndexComparator()
compare
public 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. 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.
- Specified by:
compare in interface Comparator<org.rhq.enterprise.communications.command.param.ParameterNameIndex>
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.