Package org.stellar.sdk.xdr
Class SCPHistoryEntryV0
java.lang.Object
org.stellar.sdk.xdr.SCPHistoryEntryV0
- All Implemented Interfaces:
XdrElement
SCPHistoryEntryV0's original definition in the XDR file is:
struct SCPHistoryEntryV0
{
SCPQuorumSet quorumSets<>; // additional quorum sets used by ledgerMessages
LedgerSCPMessages ledgerMessages;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCPHistoryEntryV0(SCPQuorumSet[] quorumSets, LedgerSCPMessages ledgerMessages) Creates a newSCPHistoryEntryV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCPHistoryEntryV0decode(XdrDataInputStream stream) static SCPHistoryEntryV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCPHistoryEntryV0static SCPHistoryEntryV0fromXdrBase64(String xdr) static SCPHistoryEntryV0fromXdrByteArray(byte[] xdr) Value of theledgerMessagesfield.Value of thequorumSetsfield.inthashCode()voidsetLedgerMessages(LedgerSCPMessages ledgerMessages) Value of theledgerMessagesfield.voidsetQuorumSets(SCPQuorumSet[] quorumSets) Value of thequorumSetsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCPHistoryEntryV0
public SCPHistoryEntryV0() -
SCPHistoryEntryV0
Creates a newSCPHistoryEntryV0instance.- Parameters:
quorumSets- thequorumSetsfield valueledgerMessages- theledgerMessagesfield 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
-
getQuorumSets
Value of thequorumSetsfield.- Returns:
- the
quorumSetsfield value
-
getLedgerMessages
Value of theledgerMessagesfield.- Returns:
- the
ledgerMessagesfield value
-
setQuorumSets
Value of thequorumSetsfield.- Parameters:
quorumSets- thequorumSetsfield value
-
setLedgerMessages
Value of theledgerMessagesfield.- Parameters:
ledgerMessages- theledgerMessagesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-