public interface Locator
Modifier and Type | Method and Description |
---|---|
<T> T |
findById(java.lang.Class<T> type,
java.lang.Object id)
Lookup the entity with the specified type and the specified id, returning null if not present.
|
@Nullable <T> T findById(@Nonnull java.lang.Class<T> type, @Nonnull java.lang.Object id)
T
- the entity type.type
- the type of the entity.id
- the id of the entity.