IIdentifiable

Interface used to create data objects that can be uniquely idendified by an ID.

Description

The IIdentifiable interface is used to create data objects that can be uniquely idendified by an ID.

Important points

  • The type specified in the interface defines the type of the ID field.

Fields

id

The unique object identifier of type K.

id: K

Examples

class MyData(IIdentifiable):
    id = None