Enum Class SystemProgram.Instructions
java.lang.Object
java.lang.Enum<SystemProgram.Instructions>
software.sava.solana.programs.system.SystemProgram.Instructions
- All Implemented Interfaces:
Serializable,Comparable<SystemProgram.Instructions>,Constable,Predicate<software.sava.core.tx.Instruction>,software.sava.core.programs.Discriminator
- Enclosing class:
SystemProgram
public static enum SystemProgram.Instructions
extends Enum<SystemProgram.Instructions>
implements software.sava.core.programs.Discriminator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface software.sava.core.programs.Discriminator
NATIVE_DISCRIMINATOR_LENGTH -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()static SystemProgram.InstructionsReturns the enum constant of this class with the specified name.static SystemProgram.Instructions[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface software.sava.core.programs.Discriminator
equals, length, test, toIntArray, write, write
-
Enum Constant Details
-
CreateAccount
-
Assign
-
Transfer
-
CreateAccountWithSeed
-
AdvanceNonceAccount
-
WithdrawNonceAccount
-
InitializeNonceAccount
-
AuthorizeNonceAccount
-
Allocate
-
AllocateWithSeed
-
AssignWithSeed
-
TransferWithSeed
-
UpgradeNonceAccount
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
data
public byte[] data()- Specified by:
datain interfacesoftware.sava.core.programs.Discriminator
-