Skip to content

Commit

Permalink
Document that Ranges are immutable.
Browse files Browse the repository at this point in the history
Fixes #1813

RELNOTES=n/a

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=313873952
  • Loading branch information
kluever authored and netdpb committed Jun 1, 2020
1 parent 4595894 commit abea458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/guava/src/com/google/common/collect/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
* <h3>Other notes</h3>
*
* <ul>
* <li>All ranges are shallow-immutable.
* <li>Instances of this type are obtained using the static factory methods in this class.
* <li>Ranges are <i>convex</i>: whenever two values are contained, all values in between them
* must also be contained. More formally, for any {@code c1 <= c2 <= c3} of type {@code C},
Expand Down
1 change: 1 addition & 0 deletions guava/src/com/google/common/collect/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
* <h3>Other notes</h3>
*
* <ul>
* <li>All ranges are shallow-immutable.
* <li>Instances of this type are obtained using the static factory methods in this class.
* <li>Ranges are <i>convex</i>: whenever two values are contained, all values in between them
* must also be contained. More formally, for any {@code c1 <= c2 <= c3} of type {@code C},
Expand Down

0 comments on commit abea458

Please sign in to comment.