|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for List ADTs that use a window for Links
WindowLinked| Method Summary | |
void |
afterLast(WindowLinked w)
put a window over after-last position |
void |
beforeFirst(WindowLinked w)
put a window over before-first position |
java.lang.Object |
delete(WindowLinked w)
delete and return the object under a window, and place window over the next item |
java.lang.Object |
examine(WindowLinked w)
examine the object under a window |
void |
insertAfter(java.lang.Object e,
WindowLinked w)
insert an item after a window |
void |
insertBefore(java.lang.Object e,
WindowLinked w)
insert an item before a window |
boolean |
isAfterLast(WindowLinked w)
check if the window is over the after-last position |
boolean |
isBeforeFirst(WindowLinked w)
check if the window is over the before-first position |
boolean |
isEmpty()
check if the list is empty |
void |
next(WindowLinked w)
move a window to the next position |
void |
previous(WindowLinked w)
move a window to the previous position |
java.lang.Object |
replace(java.lang.Object e,
WindowLinked w)
replace the object under a window |
| Method Detail |
public boolean isEmpty()
public boolean isBeforeFirst(WindowLinked w)
w - the window
public boolean isAfterLast(WindowLinked w)
w - the window
public void beforeFirst(WindowLinked w)
w - the window to placepublic void afterLast(WindowLinked w)
w - the window to place
public void next(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is past the end of the list
public void previous(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is before the start of the list
public void insertAfter(java.lang.Object e,
WindowLinked w)
throws OutOfBounds
e - the item to insertw - the window
OutOfBounds - if the window is past the end of the list
public void insertBefore(java.lang.Object e,
WindowLinked w)
throws OutOfBounds
e - the item to insertw - the window
OutOfBounds - if the window is before the start of the list
public java.lang.Object examine(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is outside the list
public java.lang.Object replace(java.lang.Object e,
WindowLinked w)
throws OutOfBounds
e - the new objectw - the window
OutOfBounds - if the window is outside the list
public java.lang.Object delete(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is outside the list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||