Back to project page Learn-From-Me.
The source code is released under:
Apache License
If you think the Android project Learn-From-Me 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.overnightApps.myapplication.app.core; /* w ww. j a v a 2 s . c o m*/ import java.io.Serializable; import java.util.Date; /** * Created by andre on 3/24/14. */ public class Comment implements Serializable { private final String message; private final User author; private final long creationTime; public Comment(String message, User author, long creationTime) { this.message = message; this.author = author; this.creationTime = creationTime; } public Comment(String message, User author) { this(message,author,new Date().getTime()); } public String getMessage() { return message; } @Override public String toString() { return message; } public User getAuthor() { return author; } public long getCreationTime() { return creationTime; } }