1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| package com.battery.device.model;
|
| import java.math.BigDecimal;
| import java.time.Instant;
| import java.util.Map;
|
| public record HistorySample(
| long sequenceId,
| int stepNo,
| int cycleNo,
| String stepType,
| Long testTimeMs,
| Instant deviceTime,
| String deviceTimeRaw,
| BigDecimal voltageV,
| BigDecimal currentA,
| BigDecimal capacityAh,
| BigDecimal energyWh,
| Map<String, Measurement> measurements)
| {
| public HistorySample
| {
| measurements = measurements == null ? Map.of() : Map.copyOf(measurements);
| }
| }
|
|