ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/Concurrent.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/Concurrent.java (file contents):
Revision 1.2 by jsr166, Tue Apr 26 01:17:18 2005 UTC vs.
Revision 1.3 by jsr166, Mon May 2 08:35:49 2005 UTC

# Line 35 | Line 35 | public class Concurrent {
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(); }
# Line 46 | Line 46 | public class Concurrent {
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(); }
# Line 54 | Line 54 | public class Concurrent {
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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines