MCPcopy Create free account
hub / github.com/antlr/codebuff / entryOf

Method entryOf

corpus/java/training/guava/collect/ImmutableMap.java:122–124  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected