E - generic type of the referenced entity.public class IdRef<E> extends GenericIdRef<Long,E>
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
static <E extends GenericEntity<Long>> |
of(E entity) |
static <E> IdRef<E> |
of(long id) |
static <E> IdRef<E> |
of(Long id) |
equals, getId, hashCode, toStringprivate static final long serialVersionUID
public static <E extends GenericEntity<Long>> IdRef<E> of(E entity)
E - generic type of the referenced GenericEntity.entity - the GenericEntity to reference.IdRef pointing to the given GenericEntity or null if the GenericEntity
or its ID is null.public static <E> IdRef<E> of(Long id)
E - generic type of the referenced GenericEntity.id - the ID to wrap.IdRef pointing to an entity with the specified ID or null if the given
ID was null.public static <E> IdRef<E> of(long id)
E - generic type of the referenced GenericEntity.id - the ID to wrap.IdRef pointing to an entity with the specified ID.Copyright © 2014–2019 devon4j-Team. All rights reserved.