public enum TransactionLocationSerializer extends Enum<TransactionLocationSerializer> implements com.exonum.binding.common.serialization.Serializer<com.exonum.binding.common.blockchain.TransactionLocation>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
com.exonum.binding.common.blockchain.TransactionLocation |
fromBytes(byte[] binaryTransactionLocation) |
byte[] |
toBytes(com.exonum.binding.common.blockchain.TransactionLocation value) |
static TransactionLocationSerializer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionLocationSerializer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionLocationSerializer INSTANCE
public static TransactionLocationSerializer[] values()
for (TransactionLocationSerializer c : TransactionLocationSerializer.values()) System.out.println(c);
public static TransactionLocationSerializer 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(com.exonum.binding.common.blockchain.TransactionLocation value)
toBytes in interface com.exonum.binding.common.serialization.Serializer<com.exonum.binding.common.blockchain.TransactionLocation>public com.exonum.binding.common.blockchain.TransactionLocation fromBytes(byte[] binaryTransactionLocation)
fromBytes in interface com.exonum.binding.common.serialization.Serializer<com.exonum.binding.common.blockchain.TransactionLocation>Copyright © 2019 Exonum. All rights reserved.