Biblioteca Java - Blame information for rev 18
Subversion Repositories:
(root)/Frameworks and Technologies/Neo4J Samples/Neo4JTutorial/src/main/java/com/linkscreens/graphsin/model/Comment.java
Rev | Author | Line No. | Line |
---|---|---|---|
18 | mihai | 1 | package com.linkscreens.graphsin.model; |
2 | |||
3 | import java.util.Date; | ||
4 | |||
5 | public class Comment { | ||
6 | String text; | ||
7 | Date date; | ||
8 | |||
9 | public Comment(String text, Date date) { | ||
10 | super(); | ||
11 | this.text = text; | ||
12 | this.date = date; | ||
13 | } | ||
14 | |||
15 | public String getText() { | ||
16 | return text; | ||
17 | } | ||
18 | |||
19 | public void setText(String text) { | ||
20 | this.text = text; | ||
21 | } | ||
22 | |||
23 | public Date getDate() { | ||
24 | return date; | ||
25 | } | ||
26 | |||
27 | public void setDate(Date date) { | ||
28 | this.date = date; | ||
29 | } | ||
30 | |||
31 | @Override | ||
32 | public String toString() { | ||
33 | return "Comment ["+text+":"+date.toString()+"]"; | ||
34 | } | ||
35 | |||
36 | } |