Skip to content

Commit

Permalink
Added Javadoc to Context.putAllMap method
Browse files Browse the repository at this point in the history
  • Loading branch information
chemicL committed Jul 4, 2022
1 parent dfe22f8 commit 8daa89f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reactor-core/src/main/java/reactor/util/context/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ default Context putAll(ContextView other) {
return newContext;
}

/**
* Create a new {@link Context} by merging the content of this context and a given
* {@link Map}. If the {@link Map} is empty, the same {@link Context} instance
* is returned.
*
* @param from the {@link Map} from which to include entries in the resulting {@link Context}.
* @return a new {@link Context} with a merge of the entries from this context and the given {@link Map}.
*/
default Context putAllMap(Map<?, ?> from) {
if (from.isEmpty()) {
return this;
Expand Down

0 comments on commit 8daa89f

Please sign in to comment.