Verifies that key and value are non-null, and returns a new immutable entry with those values. A call to Map.Entry#setValue on the returned entry will always throw UnsupportedOperationException.
(K key, V value)
| 120 | * throw {@link UnsupportedOperationException}. |
| 121 | */ |
| 122 | static <K, V> ImmutableMapEntry<K, V> entryOf(K key, V value) { |
| 123 | return new ImmutableMapEntry<K, V>(key, value); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Returns a new builder. The generated builder is equivalent to the builder |