private static class HelpFormatter.OptionComparator
extends java.lang.Object
implements java.util.Comparator
This class implements the Comparator
interface
for comparing Options.
Modifier | Constructor and Description |
---|---|
private |
HelpFormatter.OptionComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order.
|
public int compare(java.lang.Object o1, java.lang.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.
compare
in interface java.util.Comparator
o1
- The first Option to be compared.o2
- The second Option to be compared.