|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tszadel.qctools4j.model.QcComparator<E>
E - The elementpublic class QcComparator<E>
A comparator to use to sort list.
| Constructor Summary | |
|---|---|
QcComparator()
|
|
| Method Summary | |
|---|---|
void |
addSort(String pFieldName,
boolean pIsAscending)
Add a sort order. |
void |
addSort(String pFieldName,
boolean pIsAscending,
boolean pCaseSensitive)
Add a sort order. |
int |
compare(E o1,
E o2)
Overrides compare. |
boolean |
isEmpty()
Check if the comparator is empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public QcComparator()
| Method Detail |
|---|
public void addSort(String pFieldName,
boolean pIsAscending)
pFieldName - The QC Field.pIsAscending - True if ascending.
public void addSort(String pFieldName,
boolean pIsAscending,
boolean pCaseSensitive)
pFieldName - The QC Field.pIsAscending - True if ascending.pCaseSensitive - True if case sensitive.
public int compare(E o1,
E o2)
compare in interface Comparator<E>Comparator.compare(java.lang.Object, java.lang.Object)public boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||