public enum AlwaysNeverYesNoAskUserResponse extends Enum<AlwaysNeverYesNoAskUserResponse>
More precisely, this is a 4-state input:
| Enum Constant and Description |
|---|
ALWAYS
Indicates to silently assume a positive response.
|
NEVER
Indicates to silently assume a negative response.
|
NO_ASK
Indicates to ask the user, but with a negative default response.
|
YES_ASK
Indicates to ask the user, but with a positive default response.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAlways() |
boolean |
isAsk() |
boolean |
isNever() |
boolean |
isNo() |
boolean |
isNoAsk() |
boolean |
isYes() |
boolean |
isYesAsk() |
static AlwaysNeverYesNoAskUserResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlwaysNeverYesNoAskUserResponse |
valueOfWithYesAskDefault(String value)
Facilitates parsing a String representation of this enum when the String can be
null.
|
static AlwaysNeverYesNoAskUserResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlwaysNeverYesNoAskUserResponse ALWAYS
public static final AlwaysNeverYesNoAskUserResponse NEVER
public static final AlwaysNeverYesNoAskUserResponse YES_ASK
public static final AlwaysNeverYesNoAskUserResponse NO_ASK
public static AlwaysNeverYesNoAskUserResponse[] values()
for (AlwaysNeverYesNoAskUserResponse c : AlwaysNeverYesNoAskUserResponse.values()) System.out.println(c);
public static AlwaysNeverYesNoAskUserResponse 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 isAlways()
public boolean isNever()
public boolean isYesAsk()
public boolean isNoAsk()
public boolean isYes()
public boolean isNo()
public boolean isAsk()
public static AlwaysNeverYesNoAskUserResponse valueOfWithYesAskDefault(String value)
value - Value. Can be null.Copyright © 2015–2016 AZYVA INC.. All rights reserved.