public static enum Sentiment.SentimentType extends Enum<Sentiment.SentimentType>
Enum Constant and Description |
---|
NEGATIVE
negative sentiment.
|
NEUTRAL
neutral sentiment.
|
POSITIVE
positive sentiment.
|
Modifier and Type | Method and Description |
---|---|
static Sentiment.SentimentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sentiment.SentimentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sentiment.SentimentType NEGATIVE
public static final Sentiment.SentimentType NEUTRAL
public static final Sentiment.SentimentType POSITIVE
public static Sentiment.SentimentType[] values()
for (Sentiment.SentimentType c : Sentiment.SentimentType.values()) System.out.println(c);
public static Sentiment.SentimentType 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 nullCopyright © 2015–2016 IBM Watson. All rights reserved.