public enum PublicKeySerializer extends java.lang.Enum<PublicKeySerializer> implements com.exonum.binding.storage.serialization.Serializer<PublicKey>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
fromBytes(byte[] serializedValue) |
byte[] |
toBytes(PublicKey value) |
static PublicKeySerializer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PublicKeySerializer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicKeySerializer INSTANCE
public static PublicKeySerializer[] values()
for (PublicKeySerializer c : PublicKeySerializer.values()) System.out.println(c);
public static PublicKeySerializer valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte[] toBytes(PublicKey value)
toBytes in interface com.exonum.binding.storage.serialization.Serializer<PublicKey>Copyright © 2018 Exonum. All rights reserved.