Interface IWriterRegistry<E>

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
    Gets the ID of this registry.
    int
    getId(E value)
     
    void
    register(E value)
     
  • Method Details

    • getId

      long getId()
      Gets the ID of this registry.
      Returns:
      The registry's ID
      Since:
      1.13
    • getId

      int getId(E value)
      Parameters:
      value - a registered value
      Returns:
      unique id
      Since:
      1.13
    • register

      void register(E value)
      Parameters:
      value - to be registered
      Since:
      1.13