Serializable
, Comparable<Integer>
, org.refcodes.mixin.StatusCodeAccessor<Integer>
public enum ExitCode extends Enum<ExitCode> implements org.refcodes.mixin.StatusCodeAccessor<Integer>
org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC extends Object,B extends org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC,B>>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeMutator<SC extends Object>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeProperty<SC extends Object>
Enum Constant | Description |
---|---|
ARGS_ERROR |
|
FAIL |
|
IO_ERROR |
|
SUCCESS |
Modifier and Type | Method | Description |
---|---|---|
Integer |
getStatusCode() |
Gets the status code.
|
static ExitCode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ExitCode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExitCode SUCCESS
public static final ExitCode FAIL
public static final ExitCode ARGS_ERROR
public static final ExitCode IO_ERROR
public static ExitCode[] values()
for (ExitCode c : ExitCode.values()) System.out.println(c);
public static ExitCode 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 nullCopyright © 2021. All rights reserved.