Package org.stellar.sdk.xdr
Class SCPBallot
java.lang.Object
org.stellar.sdk.xdr.SCPBallot
- All Implemented Interfaces:
XdrElement
SCPBallot's original definition in the XDR file is:
struct SCPBallot
{
uint32 counter; // n
Value value; // x
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SCPBallot.SCPBallotBuilderbuilder()static SCPBallotdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCPBallotfromXdrBase64(String xdr) static SCPBallotfromXdrByteArray(byte[] xdr) getValue()inthashCode()voidsetCounter(Uint32 counter) voidtoString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCPBallot
public SCPBallot() -
SCPBallot
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getCounter
-
getValue
-
setCounter
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-