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