Package com.valhalla.sdk.api.bank
Enum Class BankTab
- All Implemented Interfaces:
Serializable,Comparable<BankTab>,Constable
Main bank view and the nine optional user tabs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEighth custom tab.Fifth custom tab.First custom tab.Fourth custom tab.Main all-items view.Ninth custom tab.Second custom tab.Seventh custom tab.Sixth custom tab.Third custom tab. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the number of occupied slots assigned to this tab.fromId(int id) Resolves a tab from its native identifier.intgetId()Returns the native tab identifier.booleanisOpen()Returns whether this is the selected bank tab.booleanopen()Returns whether the runtime accepted a request to open this tab.static BankTabReturns the enum constant of this class with the specified name.static BankTab[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAIN_TAB
Main all-items view. -
FIRST_TAB
First custom tab. -
SECOND_TAB
Second custom tab. -
THIRD_TAB
Third custom tab. -
FOURTH_TAB
Fourth custom tab. -
FIFTH_TAB
Fifth custom tab. -
SIXTH_TAB
Sixth custom tab. -
SEVENTH_TAB
Seventh custom tab. -
EIGHTH_TAB
Eighth custom tab. -
NINTH_TAB
Ninth custom tab.
-
-
Method Details
-
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
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 nameNullPointerException- 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
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
-