public static class SCPStatement.SCPStatementPledges extends java.lang.Object implements XdrElement
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; }
Modifier and Type | Class and Description |
---|---|
static class |
SCPStatement.SCPStatementPledges.SCPStatementConfirm
SCPStatementConfirm's original definition in the XDR file is:
|
static class |
SCPStatement.SCPStatementPledges.SCPStatementExternalize
SCPStatementExternalize's original definition in the XDR file is:
|
static class |
SCPStatement.SCPStatementPledges.SCPStatementPledgesBuilder |
static class |
SCPStatement.SCPStatementPledges.SCPStatementPrepare
SCPStatementPrepare's original definition in the XDR file is:
|
Constructor and Description |
---|
SCPStatementPledges() |
SCPStatementPledges(SCPStatementType discriminant,
SCPStatement.SCPStatementPledges.SCPStatementPrepare prepare,
SCPStatement.SCPStatementPledges.SCPStatementConfirm confirm,
SCPStatement.SCPStatementPledges.SCPStatementExternalize externalize,
SCPNomination nominate) |
toXdrBase64, toXdrByteArray
public SCPStatementPledges()
public SCPStatementPledges(SCPStatementType discriminant, SCPStatement.SCPStatementPledges.SCPStatementPrepare prepare, SCPStatement.SCPStatementPledges.SCPStatementConfirm confirm, SCPStatement.SCPStatementPledges.SCPStatementExternalize externalize, SCPNomination nominate)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SCPStatement.SCPStatementPledges decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SCPStatement.SCPStatementPledges fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SCPStatement.SCPStatementPledges fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SCPStatement.SCPStatementPledges.SCPStatementPledgesBuilder builder()
public SCPStatement.SCPStatementPledges.SCPStatementPledgesBuilder toBuilder()
public SCPStatementType getDiscriminant()
public SCPStatement.SCPStatementPledges.SCPStatementPrepare getPrepare()
public SCPStatement.SCPStatementPledges.SCPStatementConfirm getConfirm()
public SCPStatement.SCPStatementPledges.SCPStatementExternalize getExternalize()
public SCPNomination getNominate()
public void setDiscriminant(SCPStatementType discriminant)
public void setPrepare(SCPStatement.SCPStatementPledges.SCPStatementPrepare prepare)
public void setConfirm(SCPStatement.SCPStatementPledges.SCPStatementConfirm confirm)
public void setExternalize(SCPStatement.SCPStatementPledges.SCPStatementExternalize externalize)
public void setNominate(SCPNomination nominate)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object