Skip to content

Commit 3c171e5

Browse files
committed
feat: add measure with unit
1 parent faf3f05 commit 3c171e5

File tree

1 file changed

+8
-0
lines changed
  • metadata/src/main/java/net/laprun/sustainability/power

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package net.laprun.sustainability.power;
2+
3+
public record Measure(double value, SensorUnit unit) {
4+
@Override
5+
public String toString() {
6+
return value + unit.toString();
7+
}
8+
}

0 commit comments

Comments
 (0)