Enum Class BankTab

java.lang.Object
java.lang.Enum<BankTab>
com.valhalla.sdk.api.bank.BankTab
All Implemented Interfaces:
Serializable, Comparable<BankTab>, Constable

public enum BankTab extends Enum<BankTab>
Main bank view and the nine optional user tabs.
  • Enum Constant Details

    • MAIN_TAB

      public static final BankTab MAIN_TAB
      Main all-items view.
    • FIRST_TAB

      public static final BankTab FIRST_TAB
      First custom tab.
    • SECOND_TAB

      public static final BankTab SECOND_TAB
      Second custom tab.
    • THIRD_TAB

      public static final BankTab THIRD_TAB
      Third custom tab.
    • FOURTH_TAB

      public static final BankTab FOURTH_TAB
      Fourth custom tab.
    • FIFTH_TAB

      public static final BankTab FIFTH_TAB
      Fifth custom tab.
    • SIXTH_TAB

      public static final BankTab SIXTH_TAB
      Sixth custom tab.
    • SEVENTH_TAB

      public static final BankTab SEVENTH_TAB
      Seventh custom tab.
    • EIGHTH_TAB

      public static final BankTab EIGHTH_TAB
      Eighth custom tab.
    • NINTH_TAB

      public static final BankTab NINTH_TAB
      Ninth custom tab.
  • Method Details

    • values

      public static BankTab[] 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 BankTab 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
    • getId

      public int getId()
      Returns the native tab identifier.
      Returns:
      the native tab identifier
    • count

      public int count()
      Returns the number of occupied slots assigned to this tab.
      Returns:
      the number of occupied slots assigned to this tab
    • isOpen

      public boolean isOpen()
      Returns whether this is the selected bank tab.
      Returns:
      whether this is the selected bank tab
    • open

      public boolean open()
      Returns whether the runtime accepted a request to open this tab.
      Returns:
      whether the runtime accepted a request to open this tab
    • fromId

      public static Optional<BankTab> fromId(int id)
      Resolves a tab from its native identifier.
      Parameters:
      id - tab identifier from 0 through 9
      Returns:
      the matching tab, or an empty value for an unknown identifier