Package org.stellar.sdk.xdr
Class DontHave
java.lang.Object
org.stellar.sdk.xdr.DontHave
- All Implemented Interfaces:
XdrElement
DontHave's original definition in the XDR file is:
struct DontHave
{
MessageType type;
uint256 reqHash;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionDontHave()DontHave(MessageType type, Uint256 reqHash) Creates a newDontHaveinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DontHave.DontHaveBuilderbuilder()static DontHavedecode(XdrDataInputStream stream) static DontHavedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic DontHavestatic DontHavefromXdrBase64(String xdr) static DontHavefromXdrByteArray(byte[] xdr) Value of thereqHashfield.getType()Value of thetypefield.inthashCode()voidsetReqHash(Uint256 reqHash) Value of thereqHashfield.voidsetType(MessageType type) Value of thetypefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
DontHave
public DontHave() -
DontHave
Creates a newDontHaveinstance.- Parameters:
type- thetypefield valuereqHash- thereqHashfield 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
-
getType
Value of thetypefield.- Returns:
- the
typefield value
-
getReqHash
Value of thereqHashfield.- Returns:
- the
reqHashfield value
-
setType
Value of thetypefield.- Parameters:
type- thetypefield value
-
setReqHash
Value of thereqHashfield.- Parameters:
reqHash- thereqHashfield value
-
equals
-
hashCode
public int hashCode() -
toString
-