T - the type to compare by Object.toString().java.io.Serializable, java.util.Comparator<T>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 | Description |
|---|---|
ComparatorToString() |
Defcon.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(T o1,
T o2) |
Compares both Objects by their
Object.toString() presentation. |
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.