Verifies that key and value are non-null, and returns a new immutable entry with those values. A call to Entry#setValue on the returned entry will always throw UnsupportedOperationException.
(K key, V value)
| 342 | * UnsupportedOperationException}. |
| 343 | */ |
| 344 | static <K, V> Entry<K, V> entryOf(K key, V value) { |
| 345 | return new ImmutableMapEntry<>(key, value); |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Returns a new builder. The generated builder is equivalent to the builder created by the {@link |