Interface Identifiable

All Known Implementing Classes:
Registry

public interface Identifiable
Indicates an item which can be registered in an Registry. Provides a method to get the unique identifier of the item.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the unique identifier of this registered/registrable item.
    default Identifiable
    register(Registry registry)
    Registers this object to the registry.
  • Method Details

    • getIdentifier

      Identifier getIdentifier()
      Gets the unique identifier of this registered/registrable item. This should always be the same.
      Returns:
      The identifier.
    • register

      default Identifiable register(Registry registry)
      Registers this object to the registry.
      Returns:
      This.