public enum Result extends Enum<Result>
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccess() |
static Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Result SUCCESS
public static final Result FAILURE
public static Result[] values()
for (Result c : Result.values()) System.out.println(c);
public static Result 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 boolean isSuccess()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.