Android Open Source - SimpleStrengthLog Exercise

From Project

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.

Java Source Code

package com.nomachetejuggling.ssl.model;
//from   w  ww .  ja  v a2 s . c  om

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;

  public String toString() {
    return "Exercise("+name+")";

  public int compareTo(Exercise other) {
    return name.trim().compareToIgnoreCase(;

  public void copyFrom(Exercise editedExercise) { =;
    this.restTime = editedExercise.restTime;
    this.muscles = editedExercise.muscles;
    this.favorite = editedExercise.favorite;

Java Source Code List