info.aduna.text
Class ToTextComparator

java.lang.Object
  extended by info.aduna.text.ToTextComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<java.lang.Object>

public class ToTextComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Object>, java.io.Serializable

Comparator that compares the String representations of two objects (using their toString() methods).

Author:
Herko ter Horst
See Also:
Serialized Form

Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static ToTextComparator getInstance()
           
static ToTextComparator getInstance(java.util.Locale locale)
           
 
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
 

Method Detail

getInstance

public static ToTextComparator getInstance()

getInstance

public static ToTextComparator getInstance(java.util.Locale locale)

compare

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


Copyright © 2010 Aduna. All Rights Reserved.