Package org.stellar.sdk.xdr
Class LedgerCloseValueSignature
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseValueSignature
- All Implemented Interfaces:
XdrElement
LedgerCloseValueSignature's original definition in the XDR file is:
struct LedgerCloseValueSignature
{
NodeID nodeID; // which node introduced the value
Signature signature; // nodeID's signature
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseValueSignature(NodeID nodeID, Signature signature) Creates a newLedgerCloseValueSignatureinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseValueSignaturedecode(XdrDataInputStream stream) static LedgerCloseValueSignaturedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerCloseValueSignaturestatic LedgerCloseValueSignaturefromXdrBase64(String xdr) static LedgerCloseValueSignaturefromXdrByteArray(byte[] xdr) Value of thenodeIDfield.Value of thesignaturefield.inthashCode()voidValue of thenodeIDfield.voidsetSignature(Signature signature) Value of thesignaturefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerCloseValueSignature
public LedgerCloseValueSignature() -
LedgerCloseValueSignature
Creates a newLedgerCloseValueSignatureinstance.- Parameters:
nodeID- thenodeIDfield valuesignature- thesignaturefield 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
public static LedgerCloseValueSignature decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getNodeID
Value of thenodeIDfield.- Returns:
- the
nodeIDfield value
-
getSignature
Value of thesignaturefield.- Returns:
- the
signaturefield value
-
setNodeID
Value of thenodeIDfield.- Parameters:
nodeID- thenodeIDfield value
-
setSignature
Value of thesignaturefield.- Parameters:
signature- thesignaturefield value
-
equals
-
hashCode
public int hashCode() -
toString
-