Class IdRef<E>

    • Constructor Detail

      • IdRef

        public IdRef​(Long id)
        The constructor.
        Parameters:
        id - the ID.
    • Method Detail

      • of

        public static <E> IdRef<E> of​(Long id)
        Type Parameters:
        E - generic type of the referenced GenericEntity.
        Parameters:
        id - the ID to wrap.
        Returns:
        the IdRef pointing to an entity with the specified ID or null if the given ID was null.
      • of

        public static <E> IdRef<E> of​(long id)
        Type Parameters:
        E - generic type of the referenced GenericEntity.
        Parameters:
        id - the ID to wrap.
        Returns:
        the IdRef pointing to an entity with the specified ID.