public class BoundedQueue
extends java.lang.Object
Constructor and Description |
---|
BoundedQueue(int maxSize)
Initialize the bounded queue.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object object)
Adds an item to the end of the queue, which is the front of the list.
|
boolean |
isEmpty()
Return true if the size is <= 0;
|
int |
size()
Return the number of items in the queue.
|
java.lang.Object |
take()
Takes the last of the underlying double linked list.
|
public BoundedQueue(int maxSize)
maxSize
- public void add(java.lang.Object object)
object
- public java.lang.Object take()
public int size()
public boolean isEmpty()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.