|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Orderable
An object that has a sort order
.
Version Info:
$Revision: 593 $ |
$Date: 2007-05-07 15:54:14 -0600 (Mon, 07 May 2007) $ |
$Author: dharland $ |
Method Summary | |
---|---|
SortOrder |
getOrder()
Returns the sort order. |
void |
setOrder(SortOrder newOrder)
Sets the order to newOrder . |
Method Detail |
---|
void setOrder(SortOrder newOrder)
newOrder
.
Implementing classes should handle a null parameter in some way
other than merely saving it and waiting for a downstream
NullPointerException
. Typical responses would be to replace
null with some valid value, such as SortOrder.NATURAL
,
or to throw an IllegalArgumentException
.
newOrder
- the new order for sorting.SortOrder getOrder()
Implementing classes should guarantee that the returned value will never be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |