Package org.stellar.sdk.xdr
Class PersistedSCPStateV0
java.lang.Object
org.stellar.sdk.xdr.PersistedSCPStateV0
- All Implemented Interfaces:
XdrElement
PersistedSCPStateV0's original definition in the XDR file is:
struct PersistedSCPStateV0
{
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
StoredTransactionSet txSets<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionPersistedSCPStateV0(SCPEnvelope[] scpEnvelopes, SCPQuorumSet[] quorumSets, StoredTransactionSet[] txSets) Creates a newPersistedSCPStateV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PersistedSCPStateV0decode(XdrDataInputStream stream) static PersistedSCPStateV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic PersistedSCPStateV0static PersistedSCPStateV0fromXdrBase64(String xdr) static PersistedSCPStateV0fromXdrByteArray(byte[] xdr) Value of thequorumSetsfield.Value of thescpEnvelopesfield.Value of thetxSetsfield.inthashCode()voidsetQuorumSets(SCPQuorumSet[] quorumSets) Value of thequorumSetsfield.voidsetScpEnvelopes(SCPEnvelope[] scpEnvelopes) Value of thescpEnvelopesfield.voidsetTxSets(StoredTransactionSet[] txSets) Value of thetxSetsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PersistedSCPStateV0
public PersistedSCPStateV0() -
PersistedSCPStateV0
public PersistedSCPStateV0(SCPEnvelope[] scpEnvelopes, SCPQuorumSet[] quorumSets, StoredTransactionSet[] txSets) Creates a newPersistedSCPStateV0instance.- Parameters:
scpEnvelopes- thescpEnvelopesfield valuequorumSets- thequorumSetsfield valuetxSets- thetxSetsfield 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 PersistedSCPStateV0 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
-
getScpEnvelopes
Value of thescpEnvelopesfield.- Returns:
- the
scpEnvelopesfield value
-
getQuorumSets
Value of thequorumSetsfield.- Returns:
- the
quorumSetsfield value
-
getTxSets
Value of thetxSetsfield.- Returns:
- the
txSetsfield value
-
setScpEnvelopes
Value of thescpEnvelopesfield.- Parameters:
scpEnvelopes- thescpEnvelopesfield value
-
setQuorumSets
Value of thequorumSetsfield.- Parameters:
quorumSets- thequorumSetsfield value
-
setTxSets
Value of thetxSetsfield.- Parameters:
txSets- thetxSetsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-