Skip to content

Commit

Permalink
Make javadoc for toDisjointRanges() consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Jun 7, 2024
1 parent bd24d65 commit 38e3605
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ V getValue() {
}

/**
* Returns a BiCollector that takes input (disjoint) ranges and their corresponding values
* Returns a BiCollector that takes input (disjoint) ranges and the corresponding values
* and builds a {@link ImmutableRangeMap}.
*
* @since 8.1
Expand All @@ -539,7 +539,8 @@ V getValue() {

/**
* Returns a BiCollector that merges values mapped to overlapping ranges using the {@code merger}
* function and builds an {@link ImmutableRangeMap} with disjoint ranges and merged values.
* function and builds an {@link ImmutableRangeMap} with disjoint ranges and the corresponding
* merged values.
*
* <p>For example: <pre>{@code
* Map<Range<Integer>, String> rangeMap = ...; // [1..3] -> foo, [2..4] -> bar
Expand All @@ -558,7 +559,7 @@ V getValue() {

/**
* Returns a BiCollector that merges values mapped to overlapping ranges using the {@code merger}
* function and builds an {@link BiStream} with disjoint ranges and the corresponding merged
* function and builds a {@link BiStream} with disjoint ranges and the corresponding merged
* values.
* <p>For example: <pre>{@code
Expand All @@ -580,8 +581,8 @@ V getValue() {

/**
* Returns a BiCollector that collects values mapped to overlapping ranges using {@code
* valueCollector}, and builds a {@link BiStream} with disjoint ranges and their collector
* results.
* valueCollector}, and builds a {@link BiStream} with disjoint ranges and the corresponding
* collector results.
*
* <p>For example: <pre>{@code
* Map<Range<Integer>, String> rangeMap = ...; // [1..3] -> foo, [2..4] -> bar
Expand Down

0 comments on commit 38e3605

Please sign in to comment.