|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for first-in first-out like datastructures.
Method Summary | |
void |
clear()
public behavior post size() == 0; Clear the list. |
boolean |
isEmpty()
public behavior post \result == (size() == 0); Check whether or not this Fifo is empty. |
java.lang.Object |
pop()
public behavior pre size() > 0; post elements.size() == \old(elements.size()) - 1; post \result == \old(elements.get(elements.size() - 1)); Pop the first object from this fifo. |
void |
push(java.lang.Object obj)
public invariant size() >= 0; // A model field representing the elements in this Fifo. |
int |
size()
public behavior post \result == elements.size(); Return the size of this BlockingFifoList. |
Method Detail |
public void push(java.lang.Object obj)
object
- The object to be put in the fifo.public java.lang.Object pop()
public void clear()
public int size()
public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |