Package org.stellar.sdk.xdr
Class MuxedContract
java.lang.Object
org.stellar.sdk.xdr.MuxedContract
- All Implemented Interfaces:
XdrElement
MuxedContract's original definition in the XDR file is:
struct MuxedContract
{
uint64 id;
ContractID contractId;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionMuxedContract(Uint64 id, ContractID contractId) Creates a newMuxedContractinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static MuxedContractdecode(XdrDataInputStream stream) static MuxedContractdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic MuxedContractstatic MuxedContractfromXdrBase64(String xdr) static MuxedContractfromXdrByteArray(byte[] xdr) Value of thecontractIdfield.getId()Value of theidfield.inthashCode()voidsetContractId(ContractID contractId) Value of thecontractIdfield.voidValue of theidfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
MuxedContract
public MuxedContract() -
MuxedContract
Creates a newMuxedContractinstance.- Parameters:
id- theidfield valuecontractId- thecontractIdfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getId
Value of theidfield.- Returns:
- the
idfield value
-
getContractId
Value of thecontractIdfield.- Returns:
- the
contractIdfield value
-
setId
Value of theidfield.- Parameters:
id- theidfield value
-
setContractId
Value of thecontractIdfield.- Parameters:
contractId- thecontractIdfield value
-
equals
-
hashCode
public int hashCode() -
toString
-