T
- the type to compare by Object.toString()
.public final class ComparatorToString<T> extends Object implements Comparator<T>, Serializable
Comparator
that compares the given Objects by their
Object.toString()
value.
Constructor and Description |
---|
ComparatorToString()
Defcon.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2)
Compares both Objects by their
Object.toString() presentation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(T o1, T o2) throws IllegalArgumentException
Object.toString()
presentation.
compare
in interface Comparator<T>
IllegalArgumentException
Comparator.compare(java.lang.Object, java.lang.Object)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.