modnlp.tec.client
public class TecQSort extends java.lang.Object
Compare
Modifier and Type | Field and Description |
---|---|
java.lang.String |
SEPTOKEN
Deprecated.
|
int |
sortContextHorizon
Deprecated.
|
Constructor and Description |
---|
TecQSort(Comparer c)
Deprecated.
Create a TecQSort object.
|
TecQSort(java.lang.String lor,
int ctx)
Deprecated.
Create a TecQSort object with a buil-in Comparer.
|
Modifier and Type | Method and Description |
---|---|
void |
sort(ConcordanceObject[] conc,
int start,
int end)
Deprecated.
sorts a subsequence of the array, according to the Comparer.
|
void |
sort(ConcordanceVector conc)
Deprecated.
Sorts the array, according to the Comparer.
|
public int sortContextHorizon
public java.lang.String SEPTOKEN
public TecQSort(Comparer c)
TecQSort sorter = new TecQSort(new Comparer() { public int compare(Object a, Object b) { if (a.key == b.key) return 0; else if (a.key < b.key) return -1; else return 1; } }); sorter.sort(array);
public TecQSort(java.lang.String lor, int ctx)
lor
- a string ranging over "left" and "right". If
"left", compare the reverse of the concordance
strings on the left the concordance position. Otherwise
compare the string to the right of the concordance position.public void sort(ConcordanceVector conc)
public void sort(ConcordanceObject[] conc, int start, int end)