|
||||||||||
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()
Dispenser
return size() == 0;
isEmpty
in interface Dispenser
public boolean notEmpty()
Dispenser
return !isEmpty();
notEmpty
in interface Dispenser
public void pushAll(java.util.Collection c)
Dispenser
Adds all elements in the collection into the dispenser in the order that the iterator of the collection returns them.
pushAll
in interface Dispenser
public void pushAll(java.util.Iterator i)
Dispenser
Adds all elements returned by the iterator into the dispenser in the order that the iterator returns them.
pushAll
in interface Dispenser
public void pushAllRight(java.util.List l)
Dispenser
Adds 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 |