- Type Parameters:
E
- the type of the objects
- All Known Implementing Classes:
WriterRegistry
public interface IWriterRegistry<E>
A generic interface to assign unique IDs to objects.
- Since:
- 1.13
- Author:
- Hannes Strubel
-
Method Summary
Modifier and Type |
Method |
Description |
long |
getId() |
Gets the ID of this registry.
|
int |
getId(E value) |
|
void |
register(E value) |
|
-
Method Details
-
long getId()
Gets the ID of this registry.
- Returns:
- The registry's ID
- Since:
- 1.13
-
- Parameters:
value
- a registered value
- Returns:
- unique id
- Since:
- 1.13
-
- Parameters:
value
- to be registered
- Since:
- 1.13