Enum Class AllowTrustOperation.TrustLineEntryFlag

java.lang.Object
java.lang.Enum<AllowTrustOperation.TrustLineEntryFlag>
org.stellar.sdk.operations.AllowTrustOperation.TrustLineEntryFlag
All Implemented Interfaces:
Serializable, Comparable<AllowTrustOperation.TrustLineEntryFlag>, Constable
Enclosing class:
AllowTrustOperation

public static enum AllowTrustOperation.TrustLineEntryFlag extends Enum<AllowTrustOperation.TrustLineEntryFlag>
Indicates which flags to set for a trust line entry. For details about the flags, please refer to the CAP-0018.
  • Enum Constant Details

    • UNAUTHORIZED_FLAG

      public static final AllowTrustOperation.TrustLineEntryFlag UNAUTHORIZED_FLAG
      The account can hold a balance but cannot receive payments, send payments, maintain offers or manage offers.
    • AUTHORIZED_FLAG

      public static final AllowTrustOperation.TrustLineEntryFlag AUTHORIZED_FLAG
      The account can hold a balance, receive payments, send payments, maintain offers or manage offers.
    • AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG

      public static final AllowTrustOperation.TrustLineEntryFlag AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
      The account can hold a balance and maintain offers but cannot receive payments, send payments or manage offers.
  • Method Details

    • values

      public static AllowTrustOperation.TrustLineEntryFlag[] 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 AllowTrustOperation.TrustLineEntryFlag 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()