Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.github.jreddit.user;

A Reddit comment. Contains the edited timestamp, the body

Author(s):
Benjamin Jakobus
  
  public class Comment {
      // The actual comment
 
     private String comment;
     // Edited timestamp
     private String edited;
     // Created UTC timestamp
     private String created;
     // Replies
     private String replies;
     // Number of upvotes that this comment received
     private int upvotes;
     // Number of downvotes that this comment received
     private int downvotes;

    
The constructor.

Parameters:
comment The comment.
edited The edited timestamp.
created The UTC created timestamp.
replies The replies.
upvotes Number of upvotes that this comment received.
downvotes Number of downvotes that this comment received.
Author(s):
Benjamin Jakobus
 
     public Comment(String commentString editedString createdString replies,
                    int upvotesint downvotes) {
         this. = comment;
         this. = edited;
         this. = created;
         this. = replies;
         this. = upvotes;
         this. = downvotes;
     }

    
Returns the comment.

Returns:
The comment.
Author(s):
Benjamin Jakobus
 
     public String getComment() {
         return ;
     }

    
Returns the edited timestamp.

Returns:
The edited timestamp.
Author(s):
Benjamin Jakobus
 
     public String getEdited() {
         return ;
     }

    
Returns the UTC created timestamp.

Returns:
The UTC created timestamp.
Author(s):
Benjamin Jakobus
 
     public String getCreated() {
         return ;
     }

    
Returns the replies to this comment.

Returns:
The replies to this comment.
Author(s):
Benjamin Jakobus
 
     public String getReplies() {
         return ;
     }
    
Returns the amount of upvotes to the comment

Returns:
the amount of upvotes to this comment
Author(s):
Evin Ugur
 
     public int getUpvotes(){
     	return ;
     }
    
Returns the amount of downvotes to the comment

Returns:
the amount of downvotes to the comment
Author(s):
Evin Ugur
 
     public int getDownvotes(){
     	return ;
     }
    
Sets the comment.

Parameters:
comment The comment.
Author(s):
Benjamin Jakobus
    public void setComment(String comment) {
        this. = comment;
    }

    
Sets the edited timestamp.

Parameters:
edited The edited timestamp.
Author(s):
Benjamin Jakobus
    public void setEdited(String edited) {
        this. = edited;
    }

    
Sets the UTC created timestamp.

Parameters:
created The UTC created timestamp.
Author(s):
Benjamin Jakobus
    public void setCreated(String created) {
        this. = created;
    }

    
Sets the replies.

Parameters:
replies The replies.
Author(s):
Benjamin Jakobus
    public void setReplies(String replies) {
        this. = replies;
    }

    
Sets the downvotes.

Parameters:
downvotes The downvotes.
Author(s):
Benjamin Jakobus
    public void setDownvotes(int downvotes) {
        this. = downvotes;
    }

    
Sets the upvotes.

Parameters:
upvotes The upvotes.
Author(s):
Benjamin Jakobus
    public void setUpvotes(int upvotes) {
        this. = upvotes;
    }
New to GrepCode? Check out our FAQ X