|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.util.Sorter
This object sorts a set of key objects and a set of value objects
with respect to the key value. The key objects is associated to the value
objects by index.
NOTE: The given sets are both kept unaltered. The sorted set key objects
is retrived with getKeys()
and the sorted value object is retrived
with getValues()
Field Summary | |
static Sorter |
ASCENDINGORDER
|
static String |
ASCENDINGORDER_NAME
|
static Sorter |
DESCENDINGORDER
|
static String |
DESCENDINGORDER_NAME
|
static Sorter |
UNORDERD
|
static String |
UNORDERD_NAME
|
Method Summary | |
List |
getKeys()
Gets the keys attribute of the Sorter object |
String |
getName()
Gets the name attribute of the Sorter object |
static Sorter |
getSorterByName(String aSortOrder)
Gets a Sorter object associated to a name |
List |
getValues()
Gets the values attribute of the Sorter object |
abstract boolean |
needsSwap(Object first,
Object scnd)
|
void |
setKeys(Collection keys)
Sets a collection key objects. |
void |
setValues(Collection values)
Sets a collection of value objects |
boolean |
sort()
Sorts value- and key-objects. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String UNORDERD_NAME
public static final String ASCENDINGORDER_NAME
public static final String DESCENDINGORDER_NAME
public static final Sorter UNORDERD
public static final Sorter DESCENDINGORDER
public static final Sorter ASCENDINGORDER
Method Detail |
public static Sorter getSorterByName(String aSortOrder)
Sorter
object associated to a name
aSortOrder
- name of the Sorter
public void setKeys(Collection keys)
keys
- The new keys valuepublic void setValues(Collection values)
values
- The new values valuepublic List getKeys()
public List getValues()
public String getName()
public boolean sort()
public String toString()
public abstract boolean needsSwap(Object first, Object scnd)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |