Biblioteca Java - Rev 18
Subversion Repositories:
(root)/Frameworks and Technologies/Neo4J Samples/Neo4JTutorial/src/main/java/com/linkscreens/graphsin/model/StatusUpdate.java @ 26
package com.linkscreens.graphsin.model;
import java.util.Date;
public class StatusUpdate {
String text;
Date date;
public StatusUpdate(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 "StatusUpdate ["+text+":"+date.toString()+"]";
}
}
import java.util.Date;
public class StatusUpdate {
String text;
Date date;
public StatusUpdate(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 "StatusUpdate ["+text+":"+date.toString()+"]";
}
}