|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Worklist<E>
A Worklist is a unique set.
| Method Summary | |
|---|---|
boolean |
contains(Object item)
Determines if the Worklist contains an item. |
boolean |
isEmpty()
Determines if there are any more items left in the Worklist. |
E |
pull()
Removes some item from the Worklist and return it. |
void |
push(E item)
Pushes an item onto the Worklist if it is not already there. |
| Method Detail |
|---|
void push(E item)
this
item is not already an
element of this, adds
item to this.
Else does nothing.
E pull()
this
Object,
item, that is an element of
this, removes
item from this
and returns item. Else does
nothing.
boolean contains(Object item)
item is an element of
this, returns true.
Else returns false.
boolean isEmpty()
this has any elements,
returns true. Else returns false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||