View Javadoc
1   package org.kuali.student.ap.comment.dataobject;
2   
3   import java.util.Date;
4   
5   /**
6    *  Data object for comments.
7    */
8   public class CommentDataObject implements Comparable<CommentDataObject> {
9       private Date createDate;
10      private String body;
11      private String from;
12  
13      public String getFrom() {
14         return from;
15      }
16  
17      public void setFrom(String from) {
18         this.from = from;
19      }
20  
21      public String getBody() {
22          return body;
23      }
24  
25      public void setBody(String body) {
26          this.body = body;
27      }
28  
29      public Date getCreateDate() {
30          return createDate;
31      }
32  
33      public void setCreateDate(Date createDate) {
34          this.createDate = createDate;
35      }
36  
37      public int compareTo(CommentDataObject other) {
38          if (other == null) {
39              return 1;
40          }
41          return this.getCreateDate().compareTo(other.getCreateDate());
42      }
43  }