MemoryContainer.setId(String)
and MemoryContainer.getId()
methodspublic class MemoryContainersUniqueIdentifiers
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
retrieveId(MemoryContainer memoryContainer) |
Deprecated.
Retrieves id of given memory container
|
static void |
storeMemoryContainerAndIdPair(MemoryContainer memoryContainer,
java.lang.String id) |
Deprecated.
Stores (unique-reference-to-memory-container, unique-id) pair (1:1 projection).
|
public static void storeMemoryContainerAndIdPair(MemoryContainer memoryContainer, java.lang.String id)
memoryContainer
- reference to memory container for which id should be storedid
- identifier for which reference to memory container should be storedjava.lang.NullPointerException
- when memory container or its id is null
InvalidValueException
- if given id of memory container is not unique in set of already stored idspublic static java.lang.String retrieveId(MemoryContainer memoryContainer)
memoryContainer
- reference to memory container whose id should be retrievednull
if id is not storedjava.lang.NullPointerException
- when memory container is null