Commit 52840b6
J2CL: expose
Callers from JS can use `java.util.Map.entry(key, value)` to create `Entry`
instances to pass to this. For example:
```js
const m = new Map([["key1", "value1"], ["key2", "value2"]]);
const immutableMap = ImmutableMap.ofEntries(
...m.entries().map(([k, v]) => java.util.Map.entry(k, v))
);
```
RELNOTES=n/a
PiperOrigin-RevId: 883670695ImmutableMap.ofEntries to JS1 parent e35bf7d commit 52840b6
File tree
1 file changed
+7
-0
lines changed- guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
| |||
0 commit comments