|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.util.ToStringSorter
public class ToStringSorter
The SortOperation takes a collection of objects and returns a sorted collection of these objects. The sorting of these objects is based on their toString(). They are sorted in alphabetical order.
| Constructor Summary | |
|---|---|
ToStringSorter()
|
|
| Method Summary | |
|---|---|
boolean |
compare(java.lang.String stringOne,
java.lang.String stringTwo)
Returns true if stringTwo is 'greater than' stringOne This is the 'ordering' method of the sort operation. |
void |
sort(java.lang.Object[] unSortedObjects,
java.lang.String[] unsortedStrings)
Return a new sorted collection from this unsorted collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToStringSorter()
| Method Detail |
|---|
public boolean compare(java.lang.String stringOne,
java.lang.String stringTwo)
public void sort(java.lang.Object[] unSortedObjects,
java.lang.String[] unsortedStrings)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||