org.apache.commons.cli
Class HelpFormatter.OptionComparator
java.lang.Object
org.apache.commons.cli.HelpFormatter.OptionComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- HelpFormatter
private static class HelpFormatter.OptionComparator
- extends Object
- implements Comparator
This class implements the Comparator
interface
for comparing Options.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelpFormatter.OptionComparator
private HelpFormatter.OptionComparator()
compare
public int compare(Object o1,
Object o2)
Compares its two arguments for order. Returns a negative
integer, zero, or a positive integer as the first argument
is less than, equal to, or greater than the second.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- The first Option to be compared.o2
- The second Option to be compared.
- Returns:
- a negative integer, zero, or a positive integer as
the first argument is less than, equal to, or greater than the
second.