public abstract class BaseComponent<TKey,TDataStore> extends java.lang.Object implements Component<TKey,TDataStore>
| Modifier | Constructor and Description |
|---|---|
protected |
BaseComponent(DataStoreContext<TKey,TDataStore> dataStoreContext) |
| Modifier and Type | Method and Description |
|---|---|
DataStoreContext<TKey,TDataStore> |
getDataStoreContext() |
java.lang.Class<TKey> |
getTKeyClass() |
java.util.Optional<TKey> |
parse(java.lang.Object object)
Tries to convert the given object to
TKey |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseUnsafeprotected BaseComponent(DataStoreContext<TKey,TDataStore> dataStoreContext)
public DataStoreContext<TKey,TDataStore> getDataStoreContext()
getDataStoreContext in interface Component<TKey,TDataStore>public java.lang.Class<TKey> getTKeyClass()
getTKeyClass in interface Component<TKey,TDataStore>public java.util.Optional<TKey> parse(java.lang.Object object)
ComponentTKeyparse in interface Component<TKey,TDataStore>object - To try to parseOptional containing (if parsing successful) the TKey representing this object