[cvs] / jsr166 / src / main / java / util / Queue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/Queue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13, Mon Aug 4 01:54:13 2003 UTC revision 1.14, Tue Aug 5 06:37:38 2003 UTC
# Line 72  Line 72 
72  public interface Queue<E> extends Collection<E> {  public interface Queue<E> extends Collection<E> {
73    
74      /**      /**
75       * Add the specified element to this queue, if possible.       * Adds the specified element to this queue, if possible.
76       *       *
77       * @param o the element to add.       * @param o the element to add.
78       * @return <tt>true</tt> if it was possible to add the element to       * @return <tt>true</tt> if it was possible to add the element to
# Line 81  Line 81 
81      boolean offer(E o);      boolean offer(E o);
82    
83      /**      /**
84       * Retrieve and remove the head of this queue, if it is available.       * Retrieves and removes the head of this queue, if it is available.
85       *       *
86       * @return the head of this queue, or <tt>null</tt> if this       * @return the head of this queue, or <tt>null</tt> if this
87       *         queue is empty.       *         queue is empty.
# Line 89  Line 89 
89      E poll();      E poll();
90    
91      /**      /**
92       * Retrieve and remove the head of this queue.       * Retrieves and removes the head of this queue.
93       * This method differs       * This method differs
94       * from the <tt>poll</tt> method in that it throws an exception if this       * from the <tt>poll</tt> method in that it throws an exception if this
95       * queue is empty.       * queue is empty.
# Line 100  Line 100 
100      E remove();      E remove();
101    
102      /**      /**
103       * Retrieve, but do not remove, the head of this queue.       * Retrieves, but does not remove, the head of this queue.
104       * This method differs from the <tt>poll</tt>       * This method differs from the <tt>poll</tt>
105       * method only in that this method does not remove the head element from       * method only in that this method does not remove the head element from
106       * this queue.       * this queue.
# Line 110  Line 110 
110      E peek();      E peek();
111    
112      /**      /**
113       * Retrieve, but do not remove, the head of this queue.  This method       * Retrieves, but does not remove, the head of this queue.  This method
114       * differs from the <tt>peek</tt> method only in that it throws an       * differs from the <tt>peek</tt> method only in that it throws an
115       * exception if this queue is empty.       * exception if this queue is empty.
116       *       *

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8