|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Dispenser is a Collection with an inherent order of removal of its objects, e.g. last-in first-out, first-in first-out, priority based, ...
An object can occur more than once in a Dispenser.
| Field Summary | |
static java.lang.String |
CVS_REVISION
|
| Method Summary | |
abstract boolean |
add(java.lang.Object item)
See superclass. |
abstract java.lang.Object |
getNext()
Return the object that is next to be removed. |
abstract boolean |
isEmpty()
Temporary substitute |
abstract int |
nbExplicitOccurrences(java.lang.Object item)
Return the nummer of explicit occurrences of the given object. |
abstract void |
removeNext()
Remove the next item in the removal ordering. |
abstract int |
size()
See superclass. |
| Field Detail |
public static final java.lang.String CVS_REVISION
| Method Detail |
public abstract boolean add(java.lang.Object item)
public abstract void removeNext()
public abstract java.lang.Object getNext()
public abstract int size()
public abstract int nbExplicitOccurrences(java.lang.Object item)
item - the objectpublic abstract boolean isEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||