549 |
|
* implementations. For example, it may be convenient to return |
550 |
|
* arrays of <tt>SimpleEntry</tt> instances in method |
551 |
|
* <tt>Map.entrySet().toArray</tt> |
552 |
+ |
* |
553 |
+ |
* @since 1.6 |
554 |
|
*/ |
555 |
|
public static class SimpleEntry<K,V> implements Entry<K,V> { |
556 |
|
private final K key; |
641 |
|
* does not support method <tt>setValue</tt>. This class may be |
642 |
|
* convenient in methods that return thread-safe snapshots of |
643 |
|
* key-value mappings. |
644 |
+ |
* |
645 |
+ |
* @since 1.6 |
646 |
|
*/ |
647 |
|
public static class SimpleImmutableEntry<K,V> implements Entry<K,V> { |
648 |
|
private final K key; |