(Collection<E> c)
| 384 | |
| 385 | |
| 386 | static <E> List<E> toList(Collection<E> c) { |
| 387 | // Using size() here would be a pessimization. |
| 388 | List<E> list = new ArrayList<E>(); |
| 389 | for (E e : c){ |
| 390 | list.add(e); |
| 391 | } |
| 392 | return list; |
| 393 | } |
| 394 | |
| 395 | public static final class KeySet<E> |
| 396 | extends AbstractSet<E> |