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 an unique identifier.
    Author:
    Fabrizio Giudici
    Status: stable API
    Stereotype:
    Role
    • Field Detail

      • _Identifiable_

        static final java.lang.Class<Identifiable> _Identifiable_
    • Method Detail

      • 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