com.google.bitcoin.protocols.channels
Enum PaymentChannelClientState.State
java.lang.Object
java.lang.Enum<PaymentChannelClientState.State>
com.google.bitcoin.protocols.channels.PaymentChannelClientState.State
- All Implemented Interfaces:
- Serializable, Comparable<PaymentChannelClientState.State>
- Enclosing class:
- PaymentChannelClientState
public static enum PaymentChannelClientState.State
- extends Enum<PaymentChannelClientState.State>
The different logical states the channel can be in. The channel starts out as NEW, and then steps through the
states until it becomes finalized. The server should have already been contacted and asked for a public key
by the time the NEW state is reached.
NEW
public static final PaymentChannelClientState.State NEW
INITIATED
public static final PaymentChannelClientState.State INITIATED
WAITING_FOR_SIGNED_REFUND
public static final PaymentChannelClientState.State WAITING_FOR_SIGNED_REFUND
SAVE_STATE_IN_WALLET
public static final PaymentChannelClientState.State SAVE_STATE_IN_WALLET
PROVIDE_MULTISIG_CONTRACT_TO_SERVER
public static final PaymentChannelClientState.State PROVIDE_MULTISIG_CONTRACT_TO_SERVER
READY
public static final PaymentChannelClientState.State READY
EXPIRED
public static final PaymentChannelClientState.State EXPIRED
CLOSED
public static final PaymentChannelClientState.State CLOSED
values
public static PaymentChannelClientState.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 (PaymentChannelClientState.State c : PaymentChannelClientState.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 PaymentChannelClientState.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
Copyright © 2014. All rights reserved.