|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.MSort
public final class MSort
Class to Sort Data
Change log:
compare(Object, Object) method for Double comparing support,
ascending/descending support, comparing strings ignoring case
| Field Summary | |
|---|---|
Object |
data
The data |
int |
index
Direct access index |
| Constructor Summary | |
|---|---|
MSort(int new_index,
Object new_data)
Constructor - Sort Entity |
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compare Data of two entities |
boolean |
equals(Object obj)
Equal (based on data, ignores index) |
void |
setSortAsc(boolean ascending)
Sort Ascending |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int index
public Object data
| Constructor Detail |
|---|
public MSort(int new_index,
Object new_data)
new_index - indexnew_data - data| Method Detail |
|---|
public void setSortAsc(boolean ascending)
ascending - if true sort ascending
public int compare(Object o1,
Object o2)
compare in interface Comparatoro1 - objecto2 - object
public boolean equals(Object obj)
equals in interface Comparatorequals in class Objectobj - object
public String toString()
toString in class Object
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||