Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.jreddit.retrieval.params;

Enum to represent comment sorts on Reddit. You see these on a page that lists comments.

Author(s):
Evin Ugur
Raul Rene Lepsa
Simon Kassing
 
public enum CommentSort {
    NEW("new"), 
    HOT("hot"), 
    TOP("top"), 
    CONTROVERSIAL("controversial"), 
    OLD("old"), 
    RANDOM("random"), 
    CONFIDENCE("confidence");
    private final String value;
    CommentSort(String value) {
        this. = value;
    }
    public String value() {
        return this.;
    }
    
New to GrepCode? Check out our FAQ X