org.jurvis.swing
Class JvPropertyComparator

java.lang.Object
  extended by org.jurvis.swing.JvPropertyComparator
All Implemented Interfaces:
Comparator

public class JvPropertyComparator
extends Object
implements Comparator

A comparator for comparing Property entries by key.

Author:
Neil W. Weber

Constructor Summary
JvPropertyComparator()
           
 
Method Summary
 int compare(Object o1, Object 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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

JvPropertyComparator

public JvPropertyComparator()
Method Detail

compare

public int compare(Object o1,
                   Object 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
Parameters:
o1 - the first object to be compared.
o2 - the second object 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 © 1999-2004 Neil W. Weber. All Rights Reserved.