de.schlichtherle.truezip.key
Enum PromptingKeyProvider.State
java.lang.Object
java.lang.Enum<PromptingKeyProvider.State>
de.schlichtherle.truezip.key.PromptingKeyProvider.State
- All Implemented Interfaces:
- Serializable, Comparable<PromptingKeyProvider.State>
- Enclosing class:
- PromptingKeyProvider<K extends SafeKey<K>>
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
static enum PromptingKeyProvider.State
- extends Enum<PromptingKeyProvider.State>
Implements the behavior strategy of its enclosing class.
RESET
public static final PromptingKeyProvider.State RESET
PROVIDED
public static final PromptingKeyProvider.State PROVIDED
CANCELLED
public static final PromptingKeyProvider.State CANCELLED
values
public static PromptingKeyProvider.State[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PromptingKeyProvider.State c : PromptingKeyProvider.State.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PromptingKeyProvider.State valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getCreateKey
abstract <K extends SafeKey<K>> K getCreateKey(PromptingKeyProvider<K> provider)
throws UnknownKeyException
- Throws:
UnknownKeyException
getOpenKey
abstract <K extends SafeKey<K>> K getOpenKey(PromptingKeyProvider<K> provider,
boolean invalid)
throws UnknownKeyException
- Throws:
UnknownKeyException
setKey
abstract <K extends SafeKey<K>> void setKey(PromptingKeyProvider<K> provider,
@CheckForNull
K key)
resetCancelledKey
abstract <K extends SafeKey<K>> void resetCancelledKey(PromptingKeyProvider<K> provider)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.