Package org.stellar.sdk.xdr
Class SCPStatement.SCPStatementPledges.SCPStatementPrepare
java.lang.Object
org.stellar.sdk.xdr.SCPStatement.SCPStatementPledges.SCPStatementPrepare
- All Implemented Interfaces:
XdrElement
- Enclosing class:
SCPStatement.SCPStatementPledges
public static class SCPStatement.SCPStatementPledges.SCPStatementPrepare
extends Object
implements XdrElement
SCPStatementPrepare's original definition in the XDR file is:
struct
{
Hash quorumSetHash; // D
SCPBallot ballot; // b
SCPBallot* prepared; // p
SCPBallot* preparedPrime; // p'
uint32 nC; // c.n
uint32 nH; // h.n
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) getNC()getNH()inthashCode()voidvoidvoidvoidsetPrepared(SCPBallot prepared) voidsetPreparedPrime(SCPBallot preparedPrime) voidsetQuorumSetHash(Hash quorumSetHash) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCPStatementPrepare
public SCPStatementPrepare() -
SCPStatementPrepare
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
public static SCPStatement.SCPStatementPledges.SCPStatementPrepare decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static SCPStatement.SCPStatementPledges.SCPStatementPrepare fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static SCPStatement.SCPStatementPledges.SCPStatementPrepare fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
builder
public static SCPStatement.SCPStatementPledges.SCPStatementPrepare.SCPStatementPrepareBuilder builder() -
toBuilder
-
getQuorumSetHash
-
getBallot
-
getPrepared
-
getPreparedPrime
-
getNC
-
getNH
-
setQuorumSetHash
-
setBallot
-
setPrepared
-
setPreparedPrime
-
setNC
-
setNH
-
equals
-
hashCode
public int hashCode() -
toString
-