Package it.tidalwave.role
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 java.lang.Class<Identifiable>
_Identifiable_
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Id
getId()
Returns the identifier.static Identifiable
of(Id id)
Returns a default instance which returns the given idr.
-
-
-
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
-
-