< prev index next >

src/java.base/share/classes/java/util/concurrent/BlockingDeque.java

Print this page

        

*** 186,196 **** * <a href="package-summary.html#MemoryVisibility"><i>happen-before</i></a> * actions subsequent to the access or removal of that element from * the {@code BlockingDeque} in another thread. * * <p>This interface is a member of the ! * <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> * Java Collections Framework</a>. * * @since 1.6 * @author Doug Lea * @param <E> the type of elements held in this deque --- 186,196 ---- * <a href="package-summary.html#MemoryVisibility"><i>happen-before</i></a> * actions subsequent to the access or removal of that element from * the {@code BlockingDeque} in another thread. * * <p>This interface is a member of the ! * <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> * Java Collections Framework</a>. * * @since 1.6 * @author Doug Lea * @param <E> the type of elements held in this deque
*** 397,409 **** * * @param o element to be removed from this deque, if present * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean removeFirstOccurrence(Object o); /** * Removes the last occurrence of the specified element from this deque. --- 397,409 ---- * * @param o element to be removed from this deque, if present * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean removeFirstOccurrence(Object o); /** * Removes the last occurrence of the specified element from this deque.
*** 415,427 **** * * @param o element to be removed from this deque, if present * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean removeLastOccurrence(Object o); // *** BlockingQueue methods *** --- 415,427 ---- * * @param o element to be removed from this deque, if present * @return {@code true} if an element was removed as a result of this call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean removeLastOccurrence(Object o); // *** BlockingQueue methods ***
*** 592,604 **** * * @param o element to be removed from this deque, if present * @return {@code true} if this deque changed as a result of the call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean remove(Object o); /** * Returns {@code true} if this deque contains the specified element. --- 592,604 ---- * * @param o element to be removed from this deque, if present * @return {@code true} if this deque changed as a result of the call * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean remove(Object o); /** * Returns {@code true} if this deque contains the specified element.
*** 607,619 **** * * @param o object to be checked for containment in this deque * @return {@code true} if this deque contains the specified element * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean contains(Object o); /** * Returns the number of elements in this deque. --- 607,619 ---- * * @param o object to be checked for containment in this deque * @return {@code true} if this deque contains the specified element * @throws ClassCastException if the class of the specified element * is incompatible with this deque ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) * @throws NullPointerException if the specified element is null ! * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) */ boolean contains(Object o); /** * Returns the number of elements in this deque.
< prev index next >