Package org.symbol.sdk.symbol.models
Class VotingPublicKey
java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.symbol.models.VotingPublicKey
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VotingPublicKey.VotingPublicKey(byte[] bytes) Creates a new VotingPublicKey. -
Method Summary
Modifier and TypeMethodDescriptionstatic VotingPublicKeydeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static VotingPublicKeyParses a raw value (VotingPublicKey, hex string, byte array, or SDK ByteArray) into a VotingPublicKey.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
VotingPublicKey
public VotingPublicKey(byte[] bytes) Creates a new VotingPublicKey.- Parameters:
bytes- Bytes.
-
VotingPublicKey
public VotingPublicKey()Creates a new VotingPublicKey.
-
-
Method Details
-
parse
- VotingPublicKey.parse
- Parses a raw value (VotingPublicKey, hex string, byte array, or SDK ByteArray) into a VotingPublicKey.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- VotingPublicKey.deserialize
- Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
- Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-