forked from upstream-mirrors/OpenTracks
Introduced Statistics as a value object.
This commit is contained in:
@@ -78,9 +78,9 @@ public class TrackStatisticsUpdater {
|
||||
stats.merge(currentSegment);
|
||||
return stats;
|
||||
}
|
||||
public SegmentStatisticUpdater getCurrentSegment() {
|
||||
// Take a snapshot - we don't want anyone messing with our currentSegment
|
||||
return new SegmentStatisticUpdater(currentSegment);
|
||||
|
||||
public Statistics getCurrentSegment() {
|
||||
return currentSegment.getStatistics();
|
||||
}
|
||||
|
||||
public void addTrackPoints(List<TrackPoint> trackPoints) {
|
||||
|
||||
Reference in New Issue
Block a user