1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
package jsr166x; |
541 |
|
} |
542 |
|
public E pollFirst() { |
543 |
|
Map.Entry<E,?> e = s.pollFirstEntry(); |
544 |
< |
return (e == null)? null : e.getKey(); |
544 |
> |
return (e == null) ? null : e.getKey(); |
545 |
|
} |
546 |
|
public E pollLast() { |
547 |
|
Map.Entry<E,?> e = s.pollLastEntry(); |
548 |
< |
return (e == null)? null : e.getKey(); |
548 |
> |
return (e == null) ? null : e.getKey(); |
549 |
|
} |
550 |
|
|
551 |
|
} |