|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface List
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 |
Object |
delete(WindowLinked w)
delete and return the object under a window, and place window over the next item |
Object |
examine(WindowLinked w)
examine the object under a window |
void |
insertAfter(Object e,
WindowLinked w)
insert an item after a window |
void |
insertBefore(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 |
Object |
replace(Object e,
WindowLinked w)
replace the object under a window |
| Method Detail |
|---|
boolean isEmpty()
boolean isBeforeFirst(WindowLinked w)
w - the window
boolean isAfterLast(WindowLinked w)
w - the window
void beforeFirst(WindowLinked w)
w - the window to placevoid afterLast(WindowLinked w)
w - the window to place
void next(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is past the end of the list
void previous(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is before the start of the list
void insertAfter(Object e,
WindowLinked w)
throws OutOfBounds
e - the item to insertw - the window
OutOfBounds - if the window is past the end of the list
void insertBefore(Object e,
WindowLinked w)
throws OutOfBounds
e - the item to insertw - the window
OutOfBounds - if the window is before the start of the list
Object examine(WindowLinked w)
throws OutOfBounds
w - the window
OutOfBounds - if the window is outside the list
Object replace(Object e,
WindowLinked w)
throws OutOfBounds
e - the new objectw - the window
OutOfBounds - if the window is outside the list
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 | ||||||||