public enum Operator extends Enum<Operator>
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Operator> |
lookup |
boolean |
preceded |
private String |
sign |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
allSigns() |
static Operator |
from(String sign) |
String |
getSign() |
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator AND
public static final Operator NAND
public static final Operator OR
public static final Operator NOR
public static final Operator LEFT
public static final Operator RIGHT
private final String sign
public final boolean preceded
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator 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 static String[] allSigns()
public String getSign()
Copyright © 2019. All rights reserved.