public enum Code extends Enum<Code>
| Enum Constant and Description |
|---|
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getMessage() |
static Code |
of(int code) |
static Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Code SUCCESS
public static Code[] values()
for (Code c : Code.values()) System.out.println(c);
public static Code 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 getCode()
public String getMessage()
public static Code of(int code)
Copyright © 2022. All rights reserved.