public interface Reference<T>
| Modifier and Type | Method and Description |
|---|---|
Long |
getId() |
static <T> void |
requireId(Reference<T> ref)
Require that id is not null.
|
static <T> void requireId(Reference<T> ref)
Example: list.forEach(Reference::requireId);
T - the type of the referenceref - the referenceNullPointerException - if id is nullLong getId()