Enum Class AccountFlag

java.lang.Object
java.lang.Enum<AccountFlag>
org.stellar.sdk.AccountFlag
All Implemented Interfaces:
Serializable, Comparable<AccountFlag>, Constable

public enum AccountFlag extends Enum<AccountFlag>
AccountFlag is the enum that can be used in SetOptionsOperation.
See Also:
  • Enum Constant Details

    • AUTH_REQUIRED_FLAG

      public static final AccountFlag AUTH_REQUIRED_FLAG
      Authorization required (0x1): Requires the issuing account to give other accounts permission before they can hold the issuing account’s credit.
    • AUTH_REVOCABLE_FLAG

      public static final AccountFlag AUTH_REVOCABLE_FLAG
      Authorization revocable (0x2): Allows the issuing account to revoke its credit held by other accounts.
    • AUTH_IMMUTABLE_FLAG

      public static final AccountFlag AUTH_IMMUTABLE_FLAG
      Authorization immutable (0x4): If this is set then none of the authorization flags can be set and the account can never be deleted.
  • Method Details

    • values

      public static AccountFlag[] 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

      public static AccountFlag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()