au.csiro.netcdf.cli
Class CommandLineOptionsComparator
java.lang.Object
au.csiro.netcdf.cli.CommandLineOptionsComparator
- All Implemented Interfaces:
- Comparator<org.apache.commons.cli.Option>
public class CommandLineOptionsComparator
- extends Object
- implements Comparator<org.apache.commons.cli.Option>
This class implements the Comparator
interface for comparing Options.
Copyright 2010, CSIRO Australia
All rights reserved.
- Version:
- $Revision: 78 $ $Date: 2010-07-24 16:23:13 +1000 (Sat, 24 Jul 2010) $
- Author:
- Robert Bridle on 19/03/2010
Method Summary |
int |
compare(org.apache.commons.cli.Option o1,
org.apache.commons.cli.Option o2)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineOptionsComparator
public CommandLineOptionsComparator()
compare
public int compare(org.apache.commons.cli.Option o1,
org.apache.commons.cli.Option 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<org.apache.commons.cli.Option>
- 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.
Copyright © 2010. All Rights Reserved.