public enum ContractIDPreimageType extends java.lang.Enum<ContractIDPreimageType> implements XdrElement
enum ContractIDPreimageType { CONTRACT_ID_PREIMAGE_FROM_ADDRESS = 0, CONTRACT_ID_PREIMAGE_FROM_ASSET = 1 };
Enum Constant and Description |
---|
CONTRACT_ID_PREIMAGE_FROM_ADDRESS |
CONTRACT_ID_PREIMAGE_FROM_ASSET |
Modifier and Type | Method and Description |
---|---|
static ContractIDPreimageType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ContractIDPreimageType |
fromXdrBase64(java.lang.String xdr) |
static ContractIDPreimageType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ContractIDPreimageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContractIDPreimageType[] |
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 ContractIDPreimageType CONTRACT_ID_PREIMAGE_FROM_ADDRESS
public static final ContractIDPreimageType CONTRACT_ID_PREIMAGE_FROM_ASSET
public static ContractIDPreimageType[] values()
for (ContractIDPreimageType c : ContractIDPreimageType.values()) System.out.println(c);
public static ContractIDPreimageType 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 ContractIDPreimageType 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 ContractIDPreimageType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ContractIDPreimageType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException