public enum CommitmentType extends java.lang.Enum<CommitmentType>
LightningApi.CommitmentType
Enum Constant and Description |
---|
ANCHORS |
LEGACY |
SCRIPT_ENFORCED_LEASE |
SIMPLE_TAPROOT |
STATIC_REMOTE_KEY |
UNKNOWN_COMMITMENT_TYPE |
Modifier and Type | Method and Description |
---|---|
LightningApi.CommitmentType |
getApiObject() |
static CommitmentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommitmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static CommitmentType |
wrap(LightningApi.CommitmentType apiObject) |
public static final CommitmentType UNKNOWN_COMMITMENT_TYPE
public static final CommitmentType LEGACY
public static final CommitmentType STATIC_REMOTE_KEY
public static final CommitmentType ANCHORS
public static final CommitmentType SCRIPT_ENFORCED_LEASE
public static final CommitmentType SIMPLE_TAPROOT
public static CommitmentType[] values()
for (CommitmentType c : CommitmentType.values()) System.out.println(c);
public static CommitmentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic LightningApi.CommitmentType getApiObject()
public static CommitmentType wrap(LightningApi.CommitmentType apiObject)