Back to project page picturepuzzle.
The source code is released under:
GNU General Public License
If you think the Android project picturepuzzle 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 me.crr.picturepuzzle; /*from www .ja va 2s. co m*/ import java.io.Serializable; /** * Data wrapper * Holds player's finishing time and other data as needed * @author Chris * */ public class WinTime implements Serializable { private static final long serialVersionUID = -1834367984330374038L; private long time; private String name; public WinTime(long time) { super(); this.time = time; } public WinTime(long winTime, String name) { this.time = winTime; this.name = name; } public String toString(){ StringBuilder timeAsString = new StringBuilder(); timeAsString.append(name).append('\t') .append((time/(1000*60*60)%60)).append(":") .append((int)(time/(1000*60)%60)).append(":") .append((int)(time/1000)%60); return timeAsString.toString(); } public long getTime() { // TODO Auto-generated method stub return time; } public String getName() { return name; } }