public enum RevokeSponsorshipType extends java.lang.Enum<RevokeSponsorshipType> implements XdrElement
enum RevokeSponsorshipType { REVOKE_SPONSORSHIP_LEDGER_ENTRY = 0, REVOKE_SPONSORSHIP_SIGNER = 1 };
Enum Constant and Description |
---|
REVOKE_SPONSORSHIP_LEDGER_ENTRY |
REVOKE_SPONSORSHIP_SIGNER |
Modifier and Type | Method and Description |
---|---|
static RevokeSponsorshipType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static RevokeSponsorshipType |
fromXdrBase64(java.lang.String xdr) |
static RevokeSponsorshipType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static RevokeSponsorshipType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RevokeSponsorshipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final RevokeSponsorshipType REVOKE_SPONSORSHIP_LEDGER_ENTRY
public static final RevokeSponsorshipType REVOKE_SPONSORSHIP_SIGNER
public static RevokeSponsorshipType[] values()
for (RevokeSponsorshipType c : RevokeSponsorshipType.values()) System.out.println(c);
public static RevokeSponsorshipType 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 int getValue()
public static RevokeSponsorshipType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static RevokeSponsorshipType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static RevokeSponsorshipType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException