Skip to content

Commit

Permalink
Use proper range notation in javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Jun 7, 2024
1 parent 5a855c8 commit 45269d5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ V getValue() {
* function and builds an {@link ImmutableRangeMap} with disjoint ranges and merged values.
*
* <p>For example: <pre>{@code
* Map<Range<Integer, String>> rangeMap = ...; // [1, 3] -> foo, [2, 4] -> bar
* Map<Range<Integer, String>> rangeMap = ...; // [1..3] -> foo, [2..4] -> bar
*
* // [1, 2) -> foo, [2, 3] -> foobar, (3, 4] -> bar
* // [1..2) -> foo, [2..3] -> foobar, (3..4] -> bar
* ImmutableRangeMap<Integer, String> result =
* BiStream.from(rangeMap).collect(toImmutableRangeMap(String::concat));
* }</pre>
Expand Down Expand Up @@ -577,9 +577,9 @@ ImmutableRangeMap<K, V> build() {
* results.
*
* <p>For example: <pre>{@code
* Map<Range<Integer, String>> rangeMap = ...; // [1, 3] -> foo, [2, 4] -> bar
* Map<Range<Integer, String>> rangeMap = ...; // [1..3] -> foo, [2..4] -> bar
*
* // [1, 2) -> [foo], [2, 3] -> [foo, bar], (3, 4] -> [bar]
* // [1..2) -> [foo], [2..3] -> [foo, bar], (3..4] -> [bar]
* Map<Integer, ImmutableSet<String>> result =
* BiStream.from(rangeMap)
* .collect(toDisjointRanges(toImmutableSet()))
Expand Down

0 comments on commit 45269d5

Please sign in to comment.