public class BoundedQueue<T> extends Object
Constructor and Description |
---|
BoundedQueue(int maxSize)
Initialize the bounded queue.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T 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.
|
T |
take()
Takes the last of the underlying double linked list.
|
public BoundedQueue(int maxSize)
maxSize
- public void add(T object)
object
- public T take()
public int size()
public boolean isEmpty()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.