public enum CommentType extends Enum<CommentType> implements Serializable
| Enum Constant and Description |
|---|
ANSWER |
QUESTION |
STANDARD_COMMENT |
SUGGESTION |
USAGE_EXPERIENCE |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description for the star rating for this enum instance.
|
String |
getName()
Return the default type name for this enum instance.
|
int |
getOrdinal()
Return the code for this enum instance
|
String |
toString()
Standard toString method.
|
static CommentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentType STANDARD_COMMENT
public static final CommentType QUESTION
public static final CommentType ANSWER
public static final CommentType SUGGESTION
public static final CommentType USAGE_EXPERIENCE
public static CommentType[] values()
for (CommentType c : CommentType.values()) System.out.println(c);
public static CommentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getOrdinal()
public String getName()
public String getDescription()
public String toString()
toString in class Enum<CommentType>Copyright © 2018–2020 ODPi. All rights reserved.