|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.adhi.adhij.RowSet
public class RowSet
The Row set class has matrix like representation. It has rows and columns. Ideal for table like data structure.
Field Summary | |
---|---|
static int |
ASCENDING
sorting order - ascending |
static int |
DESCENDING
sorting order - descending |
Constructor Summary | |
---|---|
RowSet()
|
Method Summary | |
---|---|
void |
add(java.util.ArrayList row)
add a row to this row set |
void |
sort(int column)
sort by the column in ascending order |
void |
sort(int column,
int orderType)
sort the rowset by the column and by the sort type (ascending or descending order). |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
public static final int ASCENDING
public static final int DESCENDING
Constructor Detail |
---|
public RowSet()
Method Detail |
---|
public void add(java.util.ArrayList row)
row
- the rowpublic void sort(int column, int orderType)
column
- the column to be sorted byorderType
- the order of sort (ascending or descending)public void sort(int column)
column
- the column to be sorted by
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |