Skip to content

Commit

Permalink
42: Links and References
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner authored and Werner committed Aug 19, 2024
1 parent c85ecaa commit baa0892
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ public static void main(String[] args) {
var min = getQuantity(50, KILOGRAM);
var max = getQuantity(100, KILOGRAM);
var range = new QuantityRange<Mass>(min, max);
System.out.println(range);
if (range.contains(person1.mass())) {
System.out.println("mass within range.");
} else {
System.out.println("mass not within range.");
}
var range2 = tech.units.indriya.quantity.QuantityRange.of(min, max);
System.out.println(range2);
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
<jsr.version>2.2</jsr.version><!-- for overloading parent -->
<ri.version>2.2</ri.version>
<ri.version>2.2.1-SNAPSHOT</ri.version>
<lib.version>2.2</lib.version>
<si.version>2.2-SNAPSHOT</si.version>
<systems.version>2.2-SNAPSHOT</systems.version>
Expand Down

0 comments on commit baa0892

Please sign in to comment.