public enum AccountAddressRestrictionFlags extends java.lang.Enum<AccountAddressRestrictionFlags> implements AccountRestrictionFlags
AccountRestrictionFlag that creates a AccountAddressRestrictionFlags.
Type of account restriction types:
0x0001 (1 decimal) - Allow only incoming transactions from a given address.
0x4001 (16385 decimal) - Allow only outgoing transactions to a given address.
0x8001 (32769 decimal) - Block incoming transactions from a given address.
0xC001 (49153 decimal) - Block outgoing transactions to a given address.
| Enum Constant and Description |
|---|
ALLOW_INCOMING_ADDRESS
Allow only incoming transactions from a given address.
|
ALLOW_OUTGOING_ADDRESS
Allow only outgoing transactions from a given address.
|
BLOCK_ADDRESS
Account restriction is interpreted as blocking address operation.
|
BLOCK_OUTGOING_ADDRESS
Block outgoing transactions for a given address.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AccountRestrictionFlag> |
getFlags() |
AccountRestrictionTargetType |
getTargetType() |
int |
getValue()
Returns enum value.
|
static AccountAddressRestrictionFlags |
rawValueOf(int value)
Gets enum value.
|
static AccountAddressRestrictionFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountAddressRestrictionFlags[] |
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 AccountAddressRestrictionFlags ALLOW_INCOMING_ADDRESS
public static final AccountAddressRestrictionFlags ALLOW_OUTGOING_ADDRESS
public static final AccountAddressRestrictionFlags BLOCK_ADDRESS
public static final AccountAddressRestrictionFlags BLOCK_OUTGOING_ADDRESS
public static AccountAddressRestrictionFlags[] values()
for (AccountAddressRestrictionFlags c : AccountAddressRestrictionFlags.values()) System.out.println(c);
values in interface AccountRestrictionFlagspublic static AccountAddressRestrictionFlags 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 AccountAddressRestrictionFlags 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