Enum Class ItemStoreType
- All Implemented Interfaces:
Serializable, Comparable<ItemStoreType>, Constable
Enum to support operations over
ItemStore based on the
type value, and strategic factory-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStoreTypeFetches value for querystatic booleanChecks if enum has valuestatic intFetch index of queryabstract booleanisItemStoreType(String query) abstract booleanisItemStoreType(ItemStoreType query) abstract ItemStoremakeItemStore(String storeName, String dbDirectory) abstract ItemStoremakeItemStoreNoElection(String storeName, String dbDirectory) static ItemStoreTypeReturns the enum constant of this class with the specified name.static ItemStoreType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROCKSDB
-
SQLITE
-
-
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
-
isItemStoreType
-
isItemStoreType
-
makeItemStore
-
makeItemStoreNoElection
-
indexOf
-
hasQuery
Checks if enum has value- Parameters:
query-- Returns:
- boolean
-
get
Fetches value for query- Parameters:
query-- Returns:
- ItemStoreType
-