Skip to content

Commit

Permalink
401: Turn Range into an Interface
Browse files Browse the repository at this point in the history
Task-Url: #401
  • Loading branch information
keilw committed Aug 23, 2023
1 parent 2b9ea73 commit bbccbaf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/tech/units/indriya/spi/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
/**
* A Range is a pair of <code>T</code> items that represent a range of values.
* <p>
* Subclasses of Range should be immutable.
*
* <dl>
* <dt><span class="strong">API Note:</span></dt><dd>This interface places no restrictions on the mutability of
* implementations, however immutability is strongly recommended. All
* implementations should be {@link Comparable}.</dd>
* </dl>
*
* @param <T>
* The value of the range.
Expand Down

0 comments on commit bbccbaf

Please sign in to comment.