public enum Polarity extends Enum<Polarity>
| Modifier and Type | Field and Description |
|---|---|
int |
polarity |
| Modifier and Type | Method and Description |
|---|---|
int |
getSign() |
static Polarity |
parse(String s)
Parse Polarity from a string.
|
String |
toString() |
static Polarity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Polarity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Polarity POSITIVE
public static final Polarity NEGATIVE
public static final Polarity NEUTRAL
public static Polarity[] values()
for (Polarity c : Polarity.values()) System.out.println(c);
public static Polarity 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 getSign()
public static Polarity parse(String s)
s - string to be parsed, must match exactly one of the polarity valuesCopyright © 2017. All rights reserved.