nl.knowledgeplaza.util.comparators
Class ComparableComparator

java.lang.Object
  extended by nl.knowledgeplaza.util.comparators.ComparableComparator
All Implemented Interfaces:
Comparator

public class ComparableComparator
extends Object
implements Comparator

This class will compare two comparables. These are most standard objects types like Integer, String, Double, etc.

Version:
$Revision: 1.2 $

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
ComparableComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

ComparableComparator

public ComparableComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator


Copyright © 2012 KnowledgePlaza. All Rights Reserved.