live.dto
Class Thread.ComparatorByDescription
java.lang.Object
live.dto.Thread.ThreadComparator
live.dto.Thread.ComparatorByDescription
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- Thread
- public static class Thread.ComparatorByDescription
- extends Thread.ThreadComparator
This comparator orders threads by their descriptions
Method Summary |
int |
compare(Thread t1,
Thread t2)
Compares two threads by comparing the descriptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Thread.ComparatorByDescription
public Thread.ComparatorByDescription()
compare
public int compare(Thread t1,
Thread t2)
- Compares two threads by comparing the descriptions
- Specified by:
compare
in class Thread.ThreadComparator
- Parameters:
t1
- First threadt2
- Second thread
- Returns:
- int Difference in descriptions between the two threads
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
Copyright © 2005