public static enum PaymentChannelClient.VersionSelector extends Enum<PaymentChannelClient.VersionSelector>
Enum Constant and Description |
---|
VERSION_1 |
VERSION_2 |
VERSION_2_ALLOW_1 |
Modifier and Type | Method and Description |
---|---|
int |
getRequestedMajorVersion() |
int |
getRequestedMinorVersion() |
boolean |
isServerVersionAccepted(int major,
int minor) |
static PaymentChannelClient.VersionSelector |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentChannelClient.VersionSelector[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentChannelClient.VersionSelector VERSION_1
public static final PaymentChannelClient.VersionSelector VERSION_2_ALLOW_1
public static final PaymentChannelClient.VersionSelector VERSION_2
public static PaymentChannelClient.VersionSelector[] values()
for (PaymentChannelClient.VersionSelector c : PaymentChannelClient.VersionSelector.values()) System.out.println(c);
public static PaymentChannelClient.VersionSelector valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getRequestedMajorVersion()
public int getRequestedMinorVersion()
public boolean isServerVersionAccepted(int major, int minor)
Copyright © 2016. All rights reserved.