|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectSortBy
public final class SortBy
Data-centric, immutable value class representing both the direction of a sort and the index of its column.
SortBy does not have any knowledge of table contents, so it may be used with any sorted table.
| Field Summary | |
|---|---|
static int |
NO_SELECTED_COLUMN
The special value of the column index used by NONE. |
static SortBy |
NONE
A special SortBy which represents the absence of any sort. |
| Constructor Summary | |
|---|---|
SortBy(SortOrder aSortOrder,
int aColumn)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object aThat)
|
int |
getColumn()
Return the column index identifying the sort, or NO_SELECTED_COLUMN
in the case of NONE. |
SortOrder |
getOrder()
Return the sense of the sort, either ascending or descending. |
int |
hashCode()
|
String |
toString()
Represent this object as a String - intended for logging purposes only. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SortBy NONE
public static final int NO_SELECTED_COLUMN
NONE.
| Constructor Detail |
|---|
public SortBy(SortOrder aSortOrder,
int aColumn)
aSortOrder - satisfies aSortOrder!=null and denotes ascending
or descending order.aColumn - satisfies aColumn >= 0 and is the index of a
table column.| Method Detail |
|---|
public SortOrder getOrder()
public int getColumn()
NO_SELECTED_COLUMN
in the case of NONE.
public String toString()
toString in class Objectpublic boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||