Package dev.enola.common.io.object
Class ObjectStore
java.lang.Object
dev.enola.common.io.object.ObjectStore
- All Implemented Interfaces:
ProviderFromID
ObjectStore is an in-memory store (and
ProviderFromID) for Identifiable objects.
It supports distinct objects with the same ID but different classes, effectively "scoping" them by their class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectStorestatic ObjectStore<T extends Identifiable>
Optional<T> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.io.object.ProviderFromID
get
-
Constructor Details
-
ObjectStore
-
-
Method Details
-
newConcurrent
-
newSingleThreaded
-
store
- Throws:
IllegalStateException
-
opt
- Specified by:
optin interfaceProviderFromID
-