Package org.stellar.sdk.xdr
Class UInt256Parts
java.lang.Object
org.stellar.sdk.xdr.UInt256Parts
- All Implemented Interfaces:
XdrElement
UInt256Parts's original definition in the XDR file is:
struct UInt256Parts {
uint64 hi_hi;
uint64 hi_lo;
uint64 lo_hi;
uint64 lo_lo;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionUInt256Parts(Uint64 hi_hi, Uint64 hi_lo, Uint64 lo_hi, Uint64 lo_lo) Creates a newUInt256Partsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static UInt256Partsdecode(XdrDataInputStream stream) static UInt256Partsdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic UInt256Partsstatic UInt256PartsfromXdrBase64(String xdr) static UInt256PartsfromXdrByteArray(byte[] xdr) getHi_hi()Value of thehi_hifield.getHi_lo()Value of thehi_lofield.getLo_hi()Value of thelo_hifield.getLo_lo()Value of thelo_lofield.inthashCode()voidValue of thehi_hifield.voidValue of thehi_lofield.voidValue of thelo_hifield.voidValue of thelo_lofield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
UInt256Parts
public UInt256Parts() -
UInt256Parts
Creates a newUInt256Partsinstance.- Parameters:
hi_hi- thehi_hifield valuehi_lo- thehi_lofield valuelo_hi- thelo_hifield valuelo_lo- thelo_lofield 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
-
getHi_hi
Value of thehi_hifield.- Returns:
- the
hi_hifield value
-
getHi_lo
Value of thehi_lofield.- Returns:
- the
hi_lofield value
-
getLo_hi
Value of thelo_hifield.- Returns:
- the
lo_hifield value
-
getLo_lo
Value of thelo_lofield.- Returns:
- the
lo_lofield value
-
setHi_hi
Value of thehi_hifield.- Parameters:
hi_hi- thehi_hifield value
-
setHi_lo
Value of thehi_lofield.- Parameters:
hi_lo- thehi_lofield value
-
setLo_hi
Value of thelo_hifield.- Parameters:
lo_hi- thelo_hifield value
-
setLo_lo
Value of thelo_lofield.- Parameters:
lo_lo- thelo_lofield value
-
equals
-
hashCode
public int hashCode() -
toString
-