Package org.stellar.sdk.xdr
Class SCPStatement.SCPStatementPledges
java.lang.Object
org.stellar.sdk.xdr.SCPStatement.SCPStatementPledges
- Enclosing class:
SCPStatement
SCPStatementPledges's original definition in the XDR file is:
union switch (SCPStatementType type)
{
case SCP_ST_PREPARE:
struct
{
Hash quorumSetHash; // D
SCPBallot ballot; // b
SCPBallot* prepared; // p
SCPBallot* preparedPrime; // p'
uint32 nC; // c.n
uint32 nH; // h.n
} prepare;
case SCP_ST_CONFIRM:
struct
{
SCPBallot ballot; // b
uint32 nPrepared; // p.n
uint32 nCommit; // c.n
uint32 nH; // h.n
Hash quorumSetHash; // D
} confirm;
case SCP_ST_EXTERNALIZE:
struct
{
SCPBallot commit; // c
uint32 nH; // h.n
Hash commitQuorumSetHash; // D used before EXTERNALIZE
} externalize;
case SCP_ST_NOMINATE:
SCPNomination nominate;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSCPStatementConfirm's original definition in the XDR file is:static classSCPStatementExternalize's original definition in the XDR file is:static classstatic classSCPStatementPrepare's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionSCPStatementPledges(SCPStatementType discriminant, SCPStatement.SCPStatementPledges.SCPStatementPrepare prepare, SCPStatement.SCPStatementPledges.SCPStatementConfirm confirm, SCPStatement.SCPStatementPledges.SCPStatementExternalize externalize, SCPNomination nominate) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) inthashCode()voidvoidsetDiscriminant(SCPStatementType discriminant) voidvoidsetNominate(SCPNomination nominate) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
SCPStatementPledges
public SCPStatementPledges() -
SCPStatementPledges
public SCPStatementPledges(SCPStatementType discriminant, SCPStatement.SCPStatementPledges.SCPStatementPrepare prepare, SCPStatement.SCPStatementPledges.SCPStatementConfirm confirm, SCPStatement.SCPStatementPledges.SCPStatementExternalize externalize, SCPNomination nominate)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getPrepare
-
getConfirm
-
getExternalize
-
getNominate
-
setDiscriminant
-
setPrepare
-
setConfirm
-
setExternalize
-
setNominate
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-