Package org.bitcoinj.wallet
Enum BasicKeyChain.State
- java.lang.Object
-
- java.lang.Enum<BasicKeyChain.State>
-
- org.bitcoinj.wallet.BasicKeyChain.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BasicKeyChain.State>
- Enclosing class:
- BasicKeyChain
public static enum BasicKeyChain.State extends java.lang.Enum<BasicKeyChain.State>
Whether this basic key chain is empty, full of regular (usable for signing) keys, or full of watching keys.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicKeyChain.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BasicKeyChain.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final BasicKeyChain.State EMPTY
-
WATCHING
public static final BasicKeyChain.State WATCHING
-
REGULAR
public static final BasicKeyChain.State REGULAR
-
-
Method Detail
-
values
public static BasicKeyChain.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 (BasicKeyChain.State c : BasicKeyChain.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 BasicKeyChain.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-