Package de.vinado.lib.identifier
Interface Identifiable<T,R extends Identifier<T>>
- Type Parameters:
R
- the type ofIdentifier
T
- the type of the typeIdentifier
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.
Common interface to be used on any
Identifier
-identifiable types. E.g. domain entities.- Author:
- Vincent Nadoll
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
extractIdValue
(Identifiable<T, ?> identifiable) getId()
-
Method Details
-
getId
R getId() -
getIdValue
-
extractIdValue
-