MCPcopy
hub / github.com/google/guava / entryOf

Method entryOf

guava/src/com/google/common/collect/ImmutableMap.java:344–346  ·  guava/src/com/google/common/collect/ImmutableMap.java::ImmutableMap.entryOf

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)

Source from the content-addressed store, hash-verified

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

Callers 4

ofMethod · 0.95
ofMethod · 0.45
ofMethod · 0.45
putMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected