Package org.polkadot.api
Enum ApiBase.ApiType
- java.lang.Object
-
- java.lang.Enum<ApiBase.ApiType>
-
- org.polkadot.api.ApiBase.ApiType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApiBase.ApiType>,java.lang.constant.Constable
- Enclosing class:
- ApiBase<ApplyResult>
public static enum ApiBase.ApiType extends java.lang.Enum<ApiBase.ApiType>
-
-
Method Summary
Modifier and Type Method Description static ApiBase.ApiTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApiBase.ApiType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RX
public static final ApiBase.ApiType RX
-
PROMISE
public static final ApiBase.ApiType PROMISE
-
-
Method Detail
-
values
public static ApiBase.ApiType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiBase.ApiType 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
-
-