compare
public int compare(Option opt1,
Option opt2)
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 java.util.Comparator<Option>
- Parameters:
opt1
- The first Option to be compared.
opt2
- 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.