jargs.gnu.option
Class OptionComparator

java.lang.Object
  extended by jargs.gnu.option.OptionComparator
All Implemented Interfaces:
java.util.Comparator<AbstractOption<?>>

public class OptionComparator
extends java.lang.Object
implements java.util.Comparator<AbstractOption<?>>

Comparator which can be used to sort AbstractOptions by comparing their long form.

Author:
Philipp Eichhorn

Constructor Summary
OptionComparator()
           
 
Method Summary
 int compare(AbstractOption<?> o1, AbstractOption<?> o2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

OptionComparator

public OptionComparator()
Method Detail

compare

public int compare(AbstractOption<?> o1,
                   AbstractOption<?> o2)
Specified by:
compare in interface java.util.Comparator<AbstractOption<?>>