testdata for IDEA-136840

This commit is contained in:
Anna Kozlova
2015-02-26 13:04:51 +01:00
parent 62b9bb1973
commit 0361291c41
2 changed files with 29 additions and 0 deletions

View File

@@ -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) {}
}