Enum Enums.TxType
- java.lang.Object
-
- java.lang.Enum<Enums.TxType>
-
- com.algorand.algosdk.v2.client.model.Enums.TxType
-
- All Implemented Interfaces:
Serializable
,Comparable<Enums.TxType>
- Enclosing class:
- Enums
public static enum Enums.TxType extends Enum<Enums.TxType>
(type) Indicates what type of transaction this is. Different types have different fields. Valid types, and where their fields are stored: (pay) payment-transaction (keyreg) keyreg-transaction (acfg) asset-config-transaction (axfer) asset-transfer-transaction (afrz) asset-freeze-transaction (appl) application-transaction (stpf) state-proof-transaction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Enums.TxType
forValue(String value)
String
toString()
static Enums.TxType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Enums.TxType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAY
public static final Enums.TxType PAY
-
KEYREG
public static final Enums.TxType KEYREG
-
ACFG
public static final Enums.TxType ACFG
-
AXFER
public static final Enums.TxType AXFER
-
AFRZ
public static final Enums.TxType AFRZ
-
APPL
public static final Enums.TxType APPL
-
STPF
public static final Enums.TxType STPF
-
UNKNOWN
public static final Enums.TxType UNKNOWN
-
-
Method Detail
-
values
public static Enums.TxType[] 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 (Enums.TxType c : Enums.TxType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Enums.TxType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Enums.TxType>
-
forValue
public static Enums.TxType forValue(String value)
-
-