|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tffenterprises.util.AbstractMergeSort
com.tffenterprises.util.StringMergeSort
public class StringMergeSort
An implementation of the merge sort for Strings.
Field Summary |
---|
Fields inherited from class com.tffenterprises.util.AbstractMergeSort |
---|
arrayToSort, scratch |
Constructor Summary | |
---|---|
StringMergeSort()
|
Method Summary | |
---|---|
protected int |
compareElementsAt(int firstIndex,
int secondIndex)
Compares two strings at specified indices of the array. |
Methods inherited from class com.tffenterprises.util.AbstractMergeSort |
---|
merge, mergeSort, sort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringMergeSort()
Method Detail |
---|
protected int compareElementsAt(int firstIndex, int secondIndex)
compareElementsAt
in class AbstractMergeSort
firstIndex
- The index of the first string to compare.secondIndex
- The index of the second string to compare.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |