Biblioteca Java - Rev 18
Subversion Repositories:
(root)/Frameworks and Technologies/Neo4J Samples/Neo4JTutorial/src/main/java/com/linkscreens/graphsin/model/Comment.java @ 25
package com.linkscreens.graphsin.model;
import java.util.Date;
public class Comment {
String text;
Date date;
public Comment(String text, Date date) {
super();
this.text = text;
this.date = date;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
@Override
public String toString() {
return "Comment ["+text+":"+date.toString()+"]";
}
}
import java.util.Date;
public class Comment {
String text;
Date date;
public Comment(String text, Date date) {
super();
this.text = text;
this.date = date;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
@Override
public String toString() {
return "Comment ["+text+":"+date.toString()+"]";
}
}