public enum AccountRestrictionFlag extends java.lang.Enum<AccountRestrictionFlag>
For example, Block (0X80) + Outgoing (0x40) + Operation Type (0x04) = 0xC4
Restriction type is an address. ADDRESS(1),
Restriction type is a mosaic identifier. MOSAIC_ID(2),
Restriction type is a transaction type. TRANSACTION_TYPE(4),
Restriction is interpreted as outgoing. OUTGOING(16384),
Restriction is interpreted as blocking operation. BLOCK(32768);
Enum Constant and Description |
---|
ADDRESS_VALUE |
BLOCK_VALUE |
MOSAIC_VALUE |
OUTGOING_VALUE |
TRANSACTION_TYPE_VALUE |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static AccountRestrictionFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountRestrictionFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountRestrictionFlag ADDRESS_VALUE
public static final AccountRestrictionFlag MOSAIC_VALUE
public static final AccountRestrictionFlag TRANSACTION_TYPE_VALUE
public static final AccountRestrictionFlag OUTGOING_VALUE
public static final AccountRestrictionFlag BLOCK_VALUE
public static AccountRestrictionFlag[] values()
for (AccountRestrictionFlag c : AccountRestrictionFlag.values()) System.out.println(c);
public static AccountRestrictionFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()