mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
@@ -81,14 +81,14 @@ public interface MultiValueMap<K, V extends @Nullable Object> extends Map<K, Lis
|
||||
void set(K key, @Nullable V value);
|
||||
|
||||
/**
|
||||
* Set the given values under.
|
||||
* @param values the values.
|
||||
* Set the given values in this {@code MultiValueMap}.
|
||||
* @param values the values
|
||||
*/
|
||||
void setAll(Map<K, V> values);
|
||||
|
||||
/**
|
||||
* Return a {@code Map} with the first values contained in this {@code MultiValueMap}.
|
||||
* The difference between this method and {@link #asSingleValueMap()} is
|
||||
* <p>The difference between this method and {@link #asSingleValueMap()} is
|
||||
* that this method returns a copy of the entries of this map, whereas
|
||||
* the latter returns a view.
|
||||
* @return a single value representation of this map
|
||||
|
||||
@@ -1798,7 +1798,7 @@ public class HttpHeaders implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all the values of the given {@code HttpHeaders} to the current header.
|
||||
* Add all name-value pairs of the given {@code HttpHeaders}.
|
||||
* <p>As values are represented as a {@code List}, duplicate values can be
|
||||
* introduced. See {@link #putAll(HttpHeaders)} to replace the list of
|
||||
* values of each individual header name instead.
|
||||
@@ -1823,8 +1823,8 @@ public class HttpHeaders implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set all single header value from the given Map under each of their
|
||||
* corresponding name.
|
||||
* Set all single header values from the given Map under each of their
|
||||
* corresponding names.
|
||||
* @param values the name-single-value pairs
|
||||
* @see #putAll(Map)
|
||||
*/
|
||||
@@ -1973,8 +1973,7 @@ public class HttpHeaders implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Put all the entries from the given {@code MultiValueMap} into this
|
||||
* HttpHeaders.
|
||||
* Put all the entries from the given {@code Map} into this HttpHeaders.
|
||||
* @param headers the given headers
|
||||
* @see #put(String, List)
|
||||
*/
|
||||
@@ -2014,7 +2013,7 @@ public class HttpHeaders implements Serializable {
|
||||
* @param action the action to be performed for each entry
|
||||
*/
|
||||
public void forEach(BiConsumer<? super String, ? super List<String>> action) {
|
||||
this.headerSet().forEach(e -> action.accept(e.getKey(), e.getValue()));
|
||||
headerSet().forEach(e -> action.accept(e.getKey(), e.getValue()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user