|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javautils.dispensers.AbstractDispenser
Implements all the Dispenser-interface methods except size(), push(Object) and pop().
| Constructor Summary | |
AbstractDispenser()
|
|
| Method Summary | |
boolean |
isEmpty()
return size() == 0; |
boolean |
notEmpty()
return !isEmpty(); |
void |
pushAll(java.util.Collection c)
Adds all elements in the collection into the dispenser in the order that the iterator of the collection returns them. |
void |
pushAll(java.util.Iterator i)
Adds all elements returned by the iterator into the dispenser in the order that the iterator returns them. |
void |
pushAllRight(java.util.List l)
Adds all elements in the list into the dispenser starting from the last element in the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javautils.dispensers.Dispenser |
pop, push, size |
| Constructor Detail |
public AbstractDispenser()
| Method Detail |
public boolean isEmpty()
Dispenserreturn size() == 0;
isEmpty in interface Dispenserpublic boolean notEmpty()
Dispenserreturn !isEmpty();
notEmpty in interface Dispenserpublic void pushAll(java.util.Collection c)
DispenserAdds all elements in the collection into the dispenser in the order that the iterator of the collection returns them.
pushAll in interface Dispenserpublic void pushAll(java.util.Iterator i)
DispenserAdds all elements returned by the iterator into the dispenser in the order that the iterator returns them.
pushAll in interface Dispenserpublic void pushAllRight(java.util.List l)
DispenserAdds all elements in the list into the dispenser starting from the last element in the list.
pushAllRight in interface Dispenser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||