Enum Class BankPermission

java.lang.Object
java.lang.Enum<BankPermission>
nl.minetopiasdb.api.enums.BankPermission
All Implemented Interfaces:
Serializable, Comparable<BankPermission>, Constable

public enum BankPermission extends Enum<BankPermission>
Enum that holds the different permissions for bankaccount users
  • Enum Constant Details

    • WITHDRAW

      public static final BankPermission WITHDRAW
      Permission to withdraw money from bankaccount
    • DEPOSIT

      public static final BankPermission DEPOSIT
      Permission to deposit money to bankaccount
    • ADMIN

      public static final BankPermission ADMIN
      Permission to withdraw and deposit money from bankaccount
  • Method Details

    • values

      public static BankPermission[] 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 BankPermission 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
    • getDutch

      public String getDutch()
    • getEnglish

      public String getEnglish()
    • getPermission

      public static BankPermission getPermission(String name)