Package io.nem.sdk.openapi.jersey2.model
Enum AccountRestrictionFlagsEnum
- java.lang.Object
-
- java.lang.Enum<AccountRestrictionFlagsEnum>
-
- io.nem.sdk.openapi.jersey2.model.AccountRestrictionFlagsEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AccountRestrictionFlagsEnum>
public enum AccountRestrictionFlagsEnum extends java.lang.Enum<AccountRestrictionFlagsEnum>
Type of account restriction: * 0x0001 (1 decimal) - Allow only incoming transactions from a given address. * 0x0002 (2 decimal) - Allow only incoming transactions containing a given mosaic identifier. * 0x4001 (16385 decimal) - Allow only outgoing transactions to a given address. * 0x4004 (16388 decimal) - Allow only outgoing transactions with a given transaction type. * 0x8001 (32769 decimal) - Block incoming transactions from a given address. * 0x8002 (32770 decimal) - Block incoming transactions containing a given mosaic identifier. * 0xC001 (49153 decimal) - Block outgoing transactions to a given address. * 0xC004 (49156 decimal) - Block outgoing transactions with a given transaction type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NUMBER_1NUMBER_16385NUMBER_16388NUMBER_2NUMBER_32769NUMBER_32770NUMBER_49153NUMBER_49156
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountRestrictionFlagsEnumfromValue(java.lang.Integer value)java.lang.IntegergetValue()java.lang.StringtoString()static AccountRestrictionFlagsEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AccountRestrictionFlagsEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMBER_1
public static final AccountRestrictionFlagsEnum NUMBER_1
-
NUMBER_2
public static final AccountRestrictionFlagsEnum NUMBER_2
-
NUMBER_16385
public static final AccountRestrictionFlagsEnum NUMBER_16385
-
NUMBER_16388
public static final AccountRestrictionFlagsEnum NUMBER_16388
-
NUMBER_32769
public static final AccountRestrictionFlagsEnum NUMBER_32769
-
NUMBER_32770
public static final AccountRestrictionFlagsEnum NUMBER_32770
-
NUMBER_49153
public static final AccountRestrictionFlagsEnum NUMBER_49153
-
NUMBER_49156
public static final AccountRestrictionFlagsEnum NUMBER_49156
-
-
Method Detail
-
values
public static AccountRestrictionFlagsEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AccountRestrictionFlagsEnum c : AccountRestrictionFlagsEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountRestrictionFlagsEnum 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
-
getValue
public java.lang.Integer getValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<AccountRestrictionFlagsEnum>
-
fromValue
public static AccountRestrictionFlagsEnum fromValue(java.lang.Integer value)
-
-