public static enum Peer.SyncType extends java.lang.Enum<Peer.SyncType>
LightningApi.Peer.SyncType
Enum Constant and Description |
---|
ACTIVE_SYNC |
PASSIVE_SYNC |
PINNED_SYNC |
UNKNOWN_SYNC |
Modifier and Type | Method and Description |
---|---|
LightningApi.Peer.SyncType |
getApiObject() |
static Peer.SyncType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Peer.SyncType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Peer.SyncType |
wrap(LightningApi.Peer.SyncType apiObject) |
public static final Peer.SyncType UNKNOWN_SYNC
public static final Peer.SyncType ACTIVE_SYNC
public static final Peer.SyncType PASSIVE_SYNC
public static final Peer.SyncType PINNED_SYNC
public static Peer.SyncType[] values()
for (Peer.SyncType c : Peer.SyncType.values()) System.out.println(c);
public static Peer.SyncType 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.Peer.SyncType getApiObject()
public static Peer.SyncType wrap(LightningApi.Peer.SyncType apiObject)