|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
Object |
pull()
Removes some item from the Worklist and return it. |
void |
push(Object item)
Pushes an item onto the Worklist if it is not already there. |
Method Detail |
public void push(Object item)
this
item
is not already an
element of this
, adds
item
to this
.
Else does nothing.
public Object pull()
this
Object
,
item
, that is an element of
this
, removes
item
from this
and returns item
. Else does
nothing.
public boolean contains(Object item)
item
is an element of
this
, returns true.
Else returns false.
public 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 |