public class BoundedList<T> extends ConcurrentLinkedQueue<T>
Constructor and Description |
---|
BoundedList() |
BoundedList(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T obj)
Adds an element at the tail.
|
boolean |
addIfAbsent(T obj) |
T |
removeFromHead() |
addAll, contains, isEmpty, iterator, offer, peek, poll, remove, size, toArray, toArray
clear, element, remove
containsAll, removeAll, retainAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, containsAll, equals, hashCode, removeAll, retainAll
public boolean add(T obj)
add
in interface Collection<T>
add
in interface Queue<T>
add
in class ConcurrentLinkedQueue<T>
obj
- The object to be addedpublic boolean addIfAbsent(T obj)
public T removeFromHead()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.