mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
method ref constrain (IDEA-119552)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
class Test {
|
||||
final List<String> wordList = new ArrayList<>();
|
||||
|
||||
public void upperCaseWords() {
|
||||
wordList.stream().map(String::toUpperCase);
|
||||
|
||||
List<String> output =
|
||||
wordList.stream()
|
||||
.map(String::toUpperCase)
|
||||
.collect(toList());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user