Interface EntityFactory<ID,T>

Type Parameters:
ID - the type of entity's identity
T - the type of entity
All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EntityFactory<ID,T> extends Serializable
Provides a way to create entity instances with a known identity.
Since:
21.06
Author:
Aleks Seovic 2021.02.01
  • Method Summary

    Modifier and Type
    Method
    Description
    create(ID id)
    Create an entity instance with the specified identity.
  • Method Details

    • create

      T create(ID id)
      Create an entity instance with the specified identity.
      Parameters:
      id - identifier to create entity instance with
      Returns:
      a created entity instance