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

Method immutableEntry

corpus/java/training/guava/collect/Maps.java:1293–1296  ·  view source on GitHub ↗

Returns an immutable map entry with the specified key and value. The Entry#setValue operation throws an UnsupportedOperationException. The returned entry is serializable. @param key the key to be associated with the returned entry @param value the value to be associated with the

(@Nullable K key, @Nullable V value)

Source from the content-addressed store, hash-verified

1291 * @param value the value to be associated with the returned entry
1292 */
1293 @GwtCompatible(serializable = true)
1294 public static <K, V> Entry<K, V> immutableEntry(@Nullable K key, @Nullable V value) {
1295 return new ImmutableEntry<K, V>(key, value);
1296 }
1297
1298 /**
1299 * Returns an unmodifiable view of the specified set of entries. The {@link

Callers 15

computeNextMethod · 0.95
transformMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
computeNextMethod · 0.95
computeNextMethod · 0.95
computeNextMethod · 0.95
createEntrySetMethod · 0.95
satisfiesMethod · 0.95
removeEntriesIfMethod · 0.95
computeNextMethod · 0.95
getEntryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected