Verifies that {@code key} and {@code value} are non-null, and returns a new immutable entry with those values. <p>A call to {@link Entry#setValue} on the returned entry will always throw {@link 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 |