public interface Component<TKey,TDataStore>
Manager,
Repository,
CacheService,
BindingExtensions| Modifier and Type | Method and Description |
|---|---|
DataStoreContext<TKey,TDataStore> |
getDataStoreContext() |
java.lang.Class<TKey> |
getTKeyClass() |
default java.util.Optional<TKey> |
parse(java.lang.Object object)
Tries to convert the given object to
TKey |
default TKey |
parseUnsafe(java.lang.Object object)
Tries to convert the given object to
TKey |
java.lang.Class<TKey> getTKeyClass()
DataStoreContext<TKey,TDataStore> getDataStoreContext()
default TKey parseUnsafe(java.lang.Object object)
TKeyobject - To try to parseTKey representing this objectjava.lang.UnsupportedOperationException - If not implementedjava.lang.IllegalArgumentException - if object was unsuccessfully parseddefault java.util.Optional<TKey> parse(java.lang.Object object)
TKeyobject - To try to parseOptional containing (if parsing successful) the TKey representing this object