Back to project page SimpleStrengthLog.
The source code is released under:
MIT License
If you think the Android project SimpleStrengthLog 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 com.nomachetejuggling.ssl.model; //from w ww . ja v a2 s . c om import java.io.Serializable; public class Exercise implements Serializable, Comparable<Exercise> { private static final long serialVersionUID = -848012361873659720L; public String name; public int restTime = 90; public String[] muscles = new String[]{}; public boolean favorite = false; @Override public String toString() { return "Exercise("+name+")"; } @Override public int compareTo(Exercise other) { return name.trim().compareToIgnoreCase(other.name.trim()); } public void copyFrom(Exercise editedExercise) { this.name = editedExercise.name; this.restTime = editedExercise.restTime; this.muscles = editedExercise.muscles; this.favorite = editedExercise.favorite; } }