|
|||||||||
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 placevoid next(WindowLinked w) throws OutOfBounds
w
- the window
OutOfBounds
- if the window is past the end of the listvoid previous(WindowLinked w) throws OutOfBounds
w
- the window
OutOfBounds
- if the window is before the start of the listvoid insertAfter(Object e, WindowLinked w) throws OutOfBounds
e
- the item to insertw
- the window
OutOfBounds
- if the window is past the end of the listvoid insertBefore(Object e, WindowLinked w) throws OutOfBounds
e
- the item to insertw
- the window
OutOfBounds
- if the window is before the start of the listObject examine(WindowLinked w) throws OutOfBounds
w
- the window
OutOfBounds
- if the window is outside the listObject replace(Object e, WindowLinked w) throws OutOfBounds
e
- the new objectw
- the window
OutOfBounds
- if the window is outside the listObject 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 |