Interface Identifiable<K>

Type Parameters:
K - the type of the key/identifier
All Known Implementing Classes:
ExternalOrder, Fill, Position, Quote, Reservation

public interface Identifiable<K>
Interface for models that can provide their own unique identifier. This allows for a generic repository pattern where each model defines how to extract its key.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the unique identifier for this entity.
  • Method Details

    • getId

      K getId()
      Returns the unique identifier for this entity.
      Returns:
      the unique key