public enum StateMutability extends java.lang.Enum<StateMutability>
| Enum Constant and Description |
|---|
NON_PAYABLE |
PAYABLE |
PURE |
VIEW |
| Modifier and Type | Method and Description |
|---|---|
static StateMutability |
findByName(java.lang.String name) |
java.lang.String |
getName() |
boolean |
isPayable() |
static boolean |
isPayable(java.lang.String state) |
boolean |
isPure() |
static boolean |
isPure(java.lang.String state) |
boolean |
isView() |
static boolean |
isView(java.lang.String state) |
static StateMutability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StateMutability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateMutability PURE
public static final StateMutability VIEW
public static final StateMutability NON_PAYABLE
public static final StateMutability PAYABLE
public static StateMutability[] values()
for (StateMutability c : StateMutability.values()) System.out.println(c);
public static StateMutability valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static StateMutability findByName(java.lang.String name)
public java.lang.String getName()
public boolean isPayable()
public boolean isPure()
public boolean isView()
public static boolean isPayable(java.lang.String state)
public static boolean isPure(java.lang.String state)
public static boolean isView(java.lang.String state)