Interface Identifiable

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
The role of an object that can expose a unique identifier.
Author:
Fabrizio Giudici
Status: stable API
Stereotype:
Role
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Class<Identifiable>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the identifier.
    of(Id id)
    Returns a default instance which returns the given idr.
  • Field Details

  • Method Details

    • getId

      @Nonnull Id getId()
      Returns the identifier.
      Returns:
      the id
    • of

      @Nonnull static Identifiable of(@Nonnull Id id)
      Returns a default instance which returns the given idr.
      Parameters:
      id - the id
      Returns:
      the identifiable
      Since:
      3.2-ALPHA-6