public enum ResultCode extends Enum<ResultCode>
| Enum Constant and Description |
|---|
Failed
Failed result code.
|
Success
Success result code.
|
| Modifier and Type | Method and Description |
|---|---|
static ResultCode |
get(byte ordinal)
Get result code.
|
static ResultCode |
get(int ordinal)
Get result code.
|
static ResultCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultCode Failed
public static final ResultCode Success
public static ResultCode[] values()
for (ResultCode c : ResultCode.values()) System.out.println(c);
public static ResultCode 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 ResultCode get(byte ordinal)
ordinal - the ordinalpublic static ResultCode get(int ordinal)
ordinal - the ordinalCopyright © 2023 Seata. All rights reserved.