Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.stats
Class NaturalComparator

java.lang.Object
  extended by com.jivesoftware.base.stats.NaturalComparator
All Implemented Interfaces:
java.util.Comparator

public class NaturalComparator
extends java.lang.Object
implements java.util.Comparator

A class that implements the Comparator interface using the natural order for a set of objects.


Constructor Summary
NaturalComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object o)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalComparator

public NaturalComparator()
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

main

public static void main(java.lang.String[] args)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.