org.springframework.richclient.table
Class ToStringComparator

java.lang.Object
  extended by org.springframework.richclient.table.ToStringComparator
All Implemented Interfaces:
Comparator

public class ToStringComparator
extends Object
implements Comparator

Comparator implementation that compares the Object.toString() representation of the argument.

Author:
Peter De Bruycker

Field Summary
static ToStringComparator INSTANCE
           
 
Constructor Summary
ToStringComparator()
           
 
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

INSTANCE

public static final ToStringComparator INSTANCE
Constructor Detail

ToStringComparator

public ToStringComparator()
Method Detail

compare

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


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.