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

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

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

revision 1.24, Mon Feb 11 17:27:45 2013 UTC revision 1.25, Thu May 2 06:38:33 2013 UTC
# Line 167  Line 167 
167  public interface Deque<E> extends Queue<E> {  public interface Deque<E> extends Queue<E> {
168      /**      /**
169       * Inserts the specified element at the front of this deque if it is       * Inserts the specified element at the front of this deque if it is
170       * possible to do so immediately without violating capacity restrictions.       * possible to do so immediately without violating capacity restrictions,
171       * When using a capacity-restricted deque, it is generally preferable to       * throwing an {@code IllegalStateException} if no space is currently
172       * use method {@link #offerFirst}.       * available.  When using a capacity-restricted deque, it is generally
173         * preferable to use method {@link #offerFirst}.
174       *       *
175       * @param e the element to add       * @param e the element to add
176       * @throws IllegalStateException if the element cannot be added at this       * @throws IllegalStateException if the element cannot be added at this
# Line 185  Line 186 
186    
187      /**      /**
188       * Inserts the specified element at the end of this deque if it is       * Inserts the specified element at the end of this deque if it is
189       * possible to do so immediately without violating capacity restrictions.       * possible to do so immediately without violating capacity restrictions,
190       * When using a capacity-restricted deque, it is generally preferable to       * throwing an {@code IllegalStateException} if no space is currently
191       * use method {@link #offerLast}.       * available.  When using a capacity-restricted deque, it is generally
192         * preferable to use method {@link #offerLast}.
193       *       *
194       * <p>This method is equivalent to {@link #add}.       * <p>This method is equivalent to {@link #add}.
195       *       *
# Line 453  Line 455 
455      /**      /**
456       * Pushes an element onto the stack represented by this deque (in other       * Pushes an element onto the stack represented by this deque (in other
457       * words, at the head of this deque) if it is possible to do so       * words, at the head of this deque) if it is possible to do so
458       * immediately without violating capacity restrictions, returning       * immediately without violating capacity restrictions, throwing an
      * {@code true} upon success and throwing an  
459       * {@code IllegalStateException} if no space is currently available.       * {@code IllegalStateException} if no space is currently available.
460       *       *
461       * <p>This method is equivalent to {@link #addFirst}.       * <p>This method is equivalent to {@link #addFirst}.

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8