Package org.stellar.sdk.xdr
Class SCPNomination
java.lang.Object
org.stellar.sdk.xdr.SCPNomination
SCPNomination's original definition in the XDR file is:
struct SCPNomination
{
Hash quorumSetHash; // D
Value votes<>; // X
Value accepted<>; // Y
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCPNominationdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SCPNominationfromXdrBase64(String xdr) static SCPNominationfromXdrByteArray(byte[] xdr) Value[]Value[]getVotes()inthashCode()voidsetAccepted(Value[] accepted) voidsetQuorumSetHash(Hash quorumSetHash) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
SCPNomination
public SCPNomination() -
SCPNomination
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getQuorumSetHash
-
getVotes
-
getAccepted
-
setQuorumSetHash
-
setVotes
-
setAccepted
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-