mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
testdata for IDEA-136840
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import static java.util.stream.Collectors.toMap;
|
||||
|
||||
class Test {
|
||||
public CompletableFuture<Map<String, VolPercentile>> getPercentile(List<String> symbols) {
|
||||
List<NameValuePair> params = new ArrayList<>(5);
|
||||
return getPercentile(params, symbols)
|
||||
.thenApplyAsync((map) -> map.entrySet().stream()
|
||||
.collect(toMap(Map.Entry::getKey, e -> new VolPercentile(e.getValue()))));
|
||||
}
|
||||
|
||||
public CompletableFuture<Map<String, Double>> getPercentile(List<NameValuePair> params, List<String> symbols) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class NameValuePair {}
|
||||
class VolPercentile implements Serializable {
|
||||
public VolPercentile(Double amount) {}
|
||||
}
|
||||
Reference in New Issue
Block a user