|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base attribute controller interface for queue implementations. It defines a read only attribute which is the current size of the queue. It defines also the maximum capacity of the queue. A maximum capacity equals to zero indicate that their is no capacity limitation.
Method Summary | |
int |
getCurrentSize()
Returns the current size of the queue. |
int |
getMaxCapacity()
Returns the maximum capacity of the queue. |
void |
setMaxCapacity(int maxCapacity)
Sets the maximum capacity of the queue. |
Method Detail |
public int getCurrentSize()
public int getMaxCapacity()
public void setMaxCapacity(int maxCapacity)
maxCapacity
- the maximum capacity of the queue.
IllegalArgumentException
- if maxCapacity
is negative.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |