35 |
|
implements BlockingQueue<E>, java.io.Serializable { |
36 |
|
private final BlockingDeque<E> q; |
37 |
|
AsLIFOBlockingQueue(BlockingDeque<E> q) { this.q = q; } |
38 |
< |
public boolean offer(E o) { return q.offerFirst(o); } |
38 |
> |
public boolean offer(E e) { return q.offerFirst(e); } |
39 |
|
public E poll() { return q.pollFirst(); } |
40 |
|
public E remove() { return q.removeFirst(); } |
41 |
|
public E peek() { return q.peekFirst(); } |
46 |
|
public Iterator<E> iterator() { return q.iterator(); } |
47 |
|
public Object[] toArray() { return q.toArray(); } |
48 |
|
public <T> T[] toArray(T[] a) { return q.toArray(a); } |
49 |
< |
public boolean add(E o) { return q.offerFirst(o); } |
49 |
> |
public boolean add(E e) { return q.offerFirst(e); } |
50 |
|
public boolean remove(Object o) { return q.remove(o); } |
51 |
|
public void clear() { q.clear(); } |
52 |
|
public int remainingCapacity() { return q.remainingCapacity(); } |
54 |
|
public int drainTo(Collection<? super E> c, int m) { |
55 |
|
return q.drainTo(c, m); |
56 |
|
} |
57 |
< |
public void put(E o) throws InterruptedException { q.putFirst(o); } |
57 |
> |
public void put(E e) throws InterruptedException { q.putFirst(e); } |
58 |
|
public E take() throws InterruptedException { return q.takeFirst(); } |
59 |
< |
public boolean offer(E o, long timeout, TimeUnit unit) |
59 |
> |
public boolean offer(E e, long timeout, TimeUnit unit) |
60 |
|
throws InterruptedException { |
61 |
< |
return q.offerFirst(o, timeout, unit); |
61 |
> |
return q.offerFirst(e, timeout, unit); |
62 |
|
} |
63 |
|
public E poll(long timeout, TimeUnit unit) |
64 |
|
throws InterruptedException { |