Package org.stellar.sdk.xdr
Class SCPStatement.SCPStatementPledges.SCPStatementExternalize
java.lang.Object
org.stellar.sdk.xdr.SCPStatement.SCPStatementPledges.SCPStatementExternalize
- All Implemented Interfaces:
XdrElement
- Enclosing class:
SCPStatement.SCPStatementPledges
public static class SCPStatement.SCPStatementPledges.SCPStatementExternalize
extends Object
implements XdrElement
SCPStatementExternalize's original definition in the XDR file is:
struct
{
SCPBallot commit; // c
uint32 nH; // h.n
Hash commitQuorumSetHash; // D used before EXTERNALIZE
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCPStatementExternalize(SCPBallot commit, Uint32 nH, Hash commitQuorumSetHash) Creates a newSCPStatementExternalizeinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thecommitfield.Value of thecommitQuorumSetHashfield.getNH()Value of thenHfield.inthashCode()voidValue of thecommitfield.voidsetCommitQuorumSetHash(Hash commitQuorumSetHash) Value of thecommitQuorumSetHashfield.voidValue of thenHfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCPStatementExternalize
public SCPStatementExternalize() -
SCPStatementExternalize
Creates a newSCPStatementExternalizeinstance.- Parameters:
commit- thecommitfield valuenH- thenHfield valuecommitQuorumSetHash- thecommitQuorumSetHashfield 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 SCPStatement.SCPStatementPledges.SCPStatementExternalize decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static SCPStatement.SCPStatementPledges.SCPStatementExternalize decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static SCPStatement.SCPStatementPledges.SCPStatementExternalize fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static SCPStatement.SCPStatementPledges.SCPStatementExternalize fromXdrByteArray(byte[] xdr) throws IOException - 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
public static SCPStatement.SCPStatementPledges.SCPStatementExternalize.SCPStatementExternalizeBuilder builder() -
toBuilder
-
getCommit
Value of thecommitfield.- Returns:
- the
commitfield value
-
getNH
Value of thenHfield.- Returns:
- the
nHfield value
-
getCommitQuorumSetHash
Value of thecommitQuorumSetHashfield.- Returns:
- the
commitQuorumSetHashfield value
-
setCommit
Value of thecommitfield.- Parameters:
commit- thecommitfield value
-
setNH
Value of thenHfield.- Parameters:
nH- thenHfield value
-
setCommitQuorumSetHash
Value of thecommitQuorumSetHashfield.- Parameters:
commitQuorumSetHash- thecommitQuorumSetHashfield value
-
equals
-
hashCode
public int hashCode() -
toString
-