src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/MultiMapResult.java
equal
deleted
inserted
replaced
42 * <p> |
42 * <p> |
43 * A {@code MultiMapResult} is obtained from an invocation such as the one shown below: |
43 * A {@code MultiMapResult} is obtained from an invocation such as the one shown below: |
44 * <p> |
44 * <p> |
45 * {@link CompletableFuture}<{@code MultiMapResult<V>}> |
45 * {@link CompletableFuture}<{@code MultiMapResult<V>}> |
46 * {@link HttpClient#sendAsync(HttpRequest, |
46 * {@link HttpClient#sendAsync(HttpRequest, |
47 * HttpResponse.MultiProcessor) HttpClient.sendAsync(}{@link |
47 * HttpResponse.MultiSubscriber) HttpClient.sendAsync(}{@link |
48 * HttpResponse.MultiProcessor#asMap(java.util.function.Function) |
48 * HttpResponse.MultiSubscriber#asMap(java.util.function.Function) |
49 * MultiProcessor.asMap(Function)}) |
49 * MultiProcessor.asMap(Function)}) |
50 * |
50 * |
51 * @param <V> the response body type for all responses |
51 * @param <V> the response body type for all responses |
52 */ |
52 */ |
53 public class MultiMapResult<V> implements Map<HttpRequest,CompletableFuture<HttpResponse<V>>> { |
53 public class MultiMapResult<V> implements Map<HttpRequest,CompletableFuture<HttpResponse<V>>> { |
115 @Override |
115 @Override |
116 public Set<Entry<HttpRequest, CompletableFuture<HttpResponse<V>>>> entrySet() { |
116 public Set<Entry<HttpRequest, CompletableFuture<HttpResponse<V>>>> entrySet() { |
117 return map.entrySet(); |
117 return map.entrySet(); |
118 } |
118 } |
119 } |
119 } |
120 |
|