public enum AccountMosaicRestrictionFlags extends java.lang.Enum<AccountMosaicRestrictionFlags> implements AccountRestrictionFlags
AccountRestrictionFlag that creates a AccountMosaicRestrictionFlags.
Type of account restriction types:
0x0002 (2 decimal) - Allow only incoming transactions containing a given mosaic identifier.
0x8002 (32770 decimal) - Block incoming transactions containing a given mosaic identifier.
| Enum Constant and Description |
|---|
ALLOW_INCOMING_MOSAIC
Allow only incoming transactions containing a a given mosaic identifier.
|
BLOCK_MOSAIC
Account restriction is interpreted as blocking mosaicId operation.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AccountRestrictionFlag> |
getFlags() |
AccountRestrictionTargetType |
getTargetType() |
int |
getValue()
Returns enum value.
|
static AccountMosaicRestrictionFlags |
rawValueOf(int value)
Gets enum value.
|
static AccountMosaicRestrictionFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountMosaicRestrictionFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final AccountMosaicRestrictionFlags ALLOW_INCOMING_MOSAIC
public static final AccountMosaicRestrictionFlags BLOCK_MOSAIC
public static AccountMosaicRestrictionFlags[] values()
for (AccountMosaicRestrictionFlags c : AccountMosaicRestrictionFlags.values()) System.out.println(c);
values in interface AccountRestrictionFlagspublic static AccountMosaicRestrictionFlags 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 static AccountMosaicRestrictionFlags rawValueOf(int value)
rawValueOf in interface AccountRestrictionFlagsvalue - Raw value of the enum.public int getValue()
getValue in interface AccountRestrictionFlagspublic java.util.List<AccountRestrictionFlag> getFlags()
getFlags in interface AccountRestrictionFlagspublic AccountRestrictionTargetType getTargetType()
getTargetType in interface AccountRestrictionFlags