Bali Share 1.1.18

oracle.bali.share.sort
Class NumberComparator

java.lang.Object
  |
  +--oracle.bali.share.sort.NumberComparator
All Implemented Interfaces:
Comparator

public class NumberComparator
extends java.lang.Object
implements Comparator

This class implements a Comparator for Numbers.

See Also:
Comparator

Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Implement the Comparator interface by comparing two Numbers.
static Comparator getComparator()
          Get the only instance of the Comparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getComparator

public static Comparator getComparator()
Get the only instance of the Comparator.

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Implement the Comparator interface by comparing two Numbers.
Specified by:
compare in interface Comparator

Bali Share 1.1.18