Package com.casper.sdk.model.transaction
Enum TransactionCategory
- java.lang.Object
-
- java.lang.Enum<TransactionCategory>
-
- com.casper.sdk.model.transaction.TransactionCategory
-
- All Implemented Interfaces:
CasperSerializableObject,Tag,SerializableObject,java.io.Serializable,java.lang.Comparable<TransactionCategory>
public enum TransactionCategory extends java.lang.Enum<TransactionCategory> implements CasperSerializableObject, Tag
The category of a Transaction.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetByteTag()voidserialize(SerializerBuffer ser, Target target)Called when the object's values must be serializedstatic TransactionCategoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TransactionCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Enum Constant Detail
-
MINT
public static final TransactionCategory MINT
Native mint interaction.
-
AUCTION
public static final TransactionCategory AUCTION
Native auction interaction.
-
INSTALL_UPGRADE
public static final TransactionCategory INSTALL_UPGRADE
Install or Upgrade.
-
LARGE
public static final TransactionCategory LARGE
A large Wasm based transaction.
-
MEDIUM
public static final TransactionCategory MEDIUM
A medium Wasm based transaction.
-
SMALL
public static final TransactionCategory SMALL
A small Wasm based transaction.
-
-
Method Detail
-
values
public static TransactionCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransactionCategory c : TransactionCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getByteTag
public byte getByteTag()
- Specified by:
getByteTagin interfaceTag
-
serialize
public void serialize(SerializerBuffer ser, Target target) throws ValueSerializationException, NoSuchTypeException
Description copied from interface:CasperSerializableObjectCalled when the object's values must be serialized- Specified by:
serializein interfaceCasperSerializableObject- Parameters:
ser- the serializer to be usedtarget- target serialization standard- Throws:
ValueSerializationException- exception holding information of failure to serialize a valueNoSuchTypeException
-
-