Package org.stellar.sdk.xdr
Class AssetCode4
java.lang.Object
org.stellar.sdk.xdr.AssetCode4
- All Implemented Interfaces:
XdrElement
AssetCode4's original definition in the XDR file is:
typedef opaque AssetCode4[4];
-
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetCode4decode(XdrDataInputStream stream) static AssetCode4decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic AssetCode4static AssetCode4fromXdrBase64(String xdr) static AssetCode4fromXdrByteArray(byte[] xdr) byte[]Value of theAssetCode4field.inthashCode()voidsetAssetCode4(byte[] AssetCode4) Value of theAssetCode4field.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AssetCode4
public AssetCode4() -
AssetCode4
public AssetCode4(byte[] AssetCode4) Creates a newAssetCode4instance.- Parameters:
AssetCode4- theAssetCode4field 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
-
getAssetCode4
public byte[] getAssetCode4()Value of theAssetCode4field.- Returns:
- the
AssetCode4field value
-
setAssetCode4
public void setAssetCode4(byte[] AssetCode4) Value of theAssetCode4field.- Parameters:
AssetCode4- theAssetCode4field value
-
equals
-
hashCode
public int hashCode() -
toString
-