Interface IdProvider

  • All Superinterfaces:
    Serializable

    public interface IdProvider
    extends Serializable
    This functional interface provides a sourceId to an EventProducer.

    Copyright (c) 2020-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See DJUTILS License.

    Author:
    Alexander Verbraeck
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Serializable id()
      Return an id that identifies the EventProducer, e.g., its toString(), or a unique name by which the EventListener can identify the sender of an event.
    • Method Detail

      • id

        Serializable id()
        Return an id that identifies the EventProducer, e.g., its toString(), or a unique name by which the EventListener can identify the sender of an event.
        Returns:
        Serializable; an id that identifies the EventProducer