Package org.stellar.sdk.xdr
Class Uint64
java.lang.Object
org.stellar.sdk.xdr.Uint64
- All Implemented Interfaces:
XdrElement
Uint64's original definition in the XDR file is:
typedef unsigned hyper uint64;
-
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionUint64()Uint64(XdrUnsignedHyperInteger uint64) Creates a newUint64instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic Uint64decode(XdrDataInputStream stream) static Uint64decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic Uint64static Uint64fromXdrBase64(String xdr) static Uint64fromXdrByteArray(byte[] xdr) Value of theuint64field.inthashCode()voidsetUint64(XdrUnsignedHyperInteger uint64) Value of theuint64field.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
Uint64
public Uint64() -
Uint64
Creates a newUint64instance.- Parameters:
uint64- theuint64field 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
-
getUint64
Value of theuint64field.- Returns:
- the
uint64field value
-
setUint64
Value of theuint64field.- Parameters:
uint64- theuint64field value
-
equals
-
hashCode
public int hashCode() -
toString
-