T - the type to compare by Object.toString().public final class ComparatorToString<T>
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Comparator that compares the given Objects by their
Object.toString() value.
| Constructor and Description |
|---|
ComparatorToString()
Defcon.
|
public int compare(T o1, T o2) throws java.lang.IllegalArgumentException
Object.toString() presentation.
compare in interface java.util.Comparator<T>java.lang.IllegalArgumentExceptionComparator.compare(java.lang.Object, java.lang.Object)Copyright © 2001 - 2010 LGPL, All Rights Footloose.