[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.5, Fri Apr 29 02:00:39 2005 UTC revision 1.6, Mon May 2 04:19:58 2005 UTC
# Line 231  Line 231 
231    
232      /**      /**
233       * Retrieves and removes the first element of this deque.  This method       * Retrieves and removes the first element of this deque.  This method
234       * differs from the <tt>pollFirst</tt> method only in that it throws an       * differs from the {@link #pollFirst} method only in that it throws an
235       * exception if this deque is empty.       * exception if this deque is empty.
236       *       *
237       * @return the first element of this deque       * @return the first element of this deque
# Line 241  Line 241 
241    
242      /**      /**
243       * Retrieves and removes the last element of this deque.  This method       * Retrieves and removes the last element of this deque.  This method
244       * differs from the <tt>pollLast</tt> method only in that it throws an       * differs from the {@link #pollLast} method only in that it throws an
245       * exception if this deque is empty.       * exception if this deque is empty.
246       *       *
247       * @return the last element of this deque       * @return the last element of this deque
# Line 269  Line 269 
269    
270      /**      /**
271       * Retrieves, but does not remove, the first element of this       * Retrieves, but does not remove, the first element of this
272       * deque.  This method differs from the <tt>peekFirst</tt> method only       * deque.  This method differs from the {@link #peekFirst} method only
273       * in that it throws an exception if this deque is empty.       * in that it throws an exception if this deque is empty.
274       *       *
275       * @return the first element of this deque       * @return the first element of this deque
# Line 279  Line 279 
279    
280      /**      /**
281       * Retrieves, but does not remove, the last element of this       * Retrieves, but does not remove, the last element of this
282       * deque.  This method differs from the <tt>peekLast</tt> method only       * deque.  This method differs from the {@link #peekLast} method only
283       * in that it throws an exception if this deque is empty.       * in that it throws an exception if this deque is empty.
284       *       *
285       * @return the last element of this deque       * @return the last element of this deque
# Line 367  Line 367 
367    
368      /**      /**
369       * Retrieves and removes the head of the queue represented by this deque.       * Retrieves and removes the head of the queue represented by this deque.
370       * This method differs from the <tt>poll</tt> method only in that it       * This method differs from the {@link #poll} method only in that it
371       * throws an exception if this deque is empty.       * throws an exception if this deque is empty.
372       *       *
373       * <p>This method is equivalent to {@link #removeFirst()}.       * <p>This method is equivalent to {@link #removeFirst()}.
# Line 390  Line 390 
390    
391      /**      /**
392       * Retrieves, but does not remove, the head of the queue represented by       * Retrieves, but does not remove, the head of the queue represented by
393       * this deque.  This method differs from the <tt>peek</tt> method only in       * this deque.  This method differs from the {@link #peek} method only in
394       * that it throws an exception if this deque is empty.       * that it throws an exception if this deque is empty.
395       *       *
396       * <p>This method is equivalent to {@link #getFirst()}.       * <p>This method is equivalent to {@link #getFirst()}.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8