1 |
|
/* |
2 |
|
* %W% %E% |
3 |
|
* |
4 |
< |
* Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
4 |
> |
* Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
5 |
|
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. |
6 |
|
*/ |
7 |
|
|
3537 |
|
* to this method, and no reference to the map is retained, as illustrated |
3538 |
|
* in the following code fragment: |
3539 |
|
* <pre> |
3540 |
< |
* Set<Object> weakHashSet = Collections.asSet( |
3540 |
> |
* Set<Object> weakHashSet = Collections.newSetFromMap( |
3541 |
|
* new WeakHashMap<Object, Boolean>()); |
3542 |
|
* </pre> |
3543 |
|
* |
3600 |
|
* <tt>remove</tt> is mapped to <tt>pop</tt> and so on. This |
3601 |
|
* view can be useful when you would like to use a method |
3602 |
|
* requiring a <tt>Queue</tt> but you need Lifo ordering. |
3603 |
+ |
* |
3604 |
|
* @param deque the deque |
3605 |
|
* @return the queue |
3606 |
|
* @since 1.6 |