Back to project page activity-tracker.
The source code is released under:
MIT License
If you think the Android project activity-tracker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.hopto.mjancola.model; /* w ww . ja va 2s . c om*/ /** * Simple container class for a give workouts total * Should be maintained as new data is added. */ public class WorkoutTotal { private long durationMS = 0L; private double distance = 0; public long getDurationMS() { return durationMS; } public void setDurationMS( long durationMS ) { this.durationMS = durationMS; } public double getDistance() { return distance; } public void addDistance( double units ) { this.distance = this.distance + units; } }