Interface Identifiable<T,R extends Identifier<T>>

Type Parameters:
R - the type of Identifier
T - the type of the type Identifier encapsulates.
All Known Subinterfaces:
NumericIdentifiable<T>, StringIdentifiable<T>, UuidIdentifiable<T>
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 Identifiable<T,R extends Identifier<T>>
Common interface to be used on any Identifier-identifiable types. E.g. domain entities.
Author:
Vincent Nadoll
  • Method Details

    • getId

      R getId()
    • getIdValue

      default Optional<T> getIdValue()
    • extractIdValue

      static <T> T extractIdValue(Identifiable<T,?> identifiable)