|
Compiere Looks 1.2.1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.compiere.util.MSort
Class to Sort Data
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
- dataMethod Detail |
public void setSortAsc(boolean ascending)
ascending
- if true sort ascendingpublic int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- objecto2
- object
public boolean equals(Object obj)
equals
in interface Comparator
equals
in class Object
obj
- object
public String toString()
toString
in class Object
|
Compiere Looks 1.2.1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |