We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ca0a5 commit a3fb8f3Copy full SHA for a3fb8f3
arduino-core/src/processing/app/PreferencesData.java
@@ -17,6 +17,7 @@
17
import java.util.Iterator;
18
import java.util.MissingResourceException;
19
import java.util.stream.Collectors;
20
+import java.util.stream.Stream;
21
22
import static processing.app.I18n.format;
23
import static processing.app.I18n.tr;
@@ -275,7 +276,11 @@ public static Collection<String> getCollection(String key) {
275
276
}
277
278
public static void setCollection(String key, Collection<String> values) {
- String value = values.stream().collect(Collectors.joining(","));
279
+ setCollection(key, values.stream());
280
+ }
281
+
282
+ public static void setCollection(String key, Stream<String> values) {
283
+ String value = values.collect(Collectors.joining(","));
284
set(key, value);
285
286
0 commit comments