Enum Class ItemStoreType

java.lang.Object
java.lang.Enum<ItemStoreType>
org.tasktide.itemstore.types.ItemStoreType
All Implemented Interfaces:
Serializable, Comparable<ItemStoreType>, Constable

public enum ItemStoreType extends Enum<ItemStoreType>
Enum to support operations over ItemStore based on the type value, and strategic factory
  • Enum Constant Details

  • Method Details

    • values

      public static ItemStoreType[] 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 ItemStoreType 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
    • isItemStoreType

      public abstract boolean isItemStoreType(String query)
    • isItemStoreType

      public abstract boolean isItemStoreType(ItemStoreType query)
    • makeItemStore

      public abstract ItemStore makeItemStore(String storeName, String dbDirectory)
    • makeItemStoreNoElection

      public abstract ItemStore makeItemStoreNoElection(String storeName, String dbDirectory)
    • indexOf

      public static int indexOf(String name)
      Fetch index of query
      Parameters:
      name -
      Returns:
      int
    • hasQuery

      public static boolean hasQuery(String query)
      Checks if enum has value
      Parameters:
      query -
      Returns:
      boolean
    • get

      public static ItemStoreType get(String query)
      Fetches value for query
      Parameters:
      query -
      Returns:
      ItemStoreType