r2967 - branches/ng-jtimer/src/main/java/org/chorem/jtimer/entities
Author: obruce Date: 2014-05-07 16:11:25 +0200 (Wed, 07 May 2014) New Revision: 2967 Url: http://forge.chorem.org/projects/jtimer/repository/revisions/2967 Log: Ajout de timertime Added: branches/ng-jtimer/src/main/java/org/chorem/jtimer/entities/TimerTime.java Added: branches/ng-jtimer/src/main/java/org/chorem/jtimer/entities/TimerTime.java =================================================================== --- branches/ng-jtimer/src/main/java/org/chorem/jtimer/entities/TimerTime.java (rev 0) +++ branches/ng-jtimer/src/main/java/org/chorem/jtimer/entities/TimerTime.java 2014-05-07 14:11:25 UTC (rev 2967) @@ -0,0 +1,90 @@ +package org.chorem.jtimer.entities; + +import java.io.Serializable; +import java.util.Date; +import java.util.UUID; + +/** + * + * jTimer TimerTime + * + * This class represents + * + * Created by olivia on 05/05/14. + */ +public class TimerTime implements Serializable { + + /** Task identifier it refers to */ + protected String taskId; + + /** Task identifier*/ + protected String timeId; + + /** Creation Date*/ + protected Date creationDate; + + /** Time Elapsed in the period */ + protected long time; + + + public TimerTime() { + } + + /** + * Constructor + * @param taskId + * @param time + * @param creationDate + */ + public TimerTime( String taskId, long time, Date creationDate) { + this.timeId = UUID.randomUUID().toString(); + this.taskId = taskId; + this.time = time; + this.creationDate = creationDate; + } + + + + + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getTimeId() { + return timeId; + } + + public void setTimeId(String timeId) { + this.timeId = timeId; + } + + public Date getCreationDate() { + return creationDate; + } + + public void setCreationDate(Date creationDate) { + this.creationDate = creationDate; + } + + public long getTime() { + return time; + } + + public void setTime(long time) { + this.time = time; + } + + @Override + public String toString() { + return "TimerTime{" + + ", taskId='" + taskId + '\'' + + ", timeId='" + timeId + '\'' + + ", creationDate=" + creationDate + + ", time=" + time + + '}'; + } +}
participants (1)
-
obruceļ¼ users.chorem.org