102 |
|
E higher(E e); |
103 |
|
|
104 |
|
/** |
105 |
< |
* Retrieves and removes the first (lowest) element. |
105 |
> |
* Retrieves and removes the first (lowest) element, |
106 |
> |
* or returns <tt>null</tt> if this set is empty. |
107 |
|
* |
108 |
|
* @return the first element, or <tt>null</tt> if this set is empty |
109 |
|
*/ |
110 |
|
E pollFirst(); |
111 |
|
|
112 |
|
/** |
113 |
< |
* Retrieves and removes the last (highest) element. |
113 |
> |
* Retrieves and removes the last (highest) element, |
114 |
> |
* or returns <tt>null</tt> if this set is empty. |
115 |
|
* |
116 |
|
* @return the last element, or <tt>null</tt> if this set is empty |
117 |
|
*/ |