de.caff.generics.util

## Class HardReferenceImpl<T>

- java.lang.Object
- - de.caff.generics.util.HardReferenceImpl<T>

- All Implemented Interfaces:
    IReference<T>

      class HardReferenceImpl<T>
      extends java.lang.Object
      implements IReference<T>

  A hard reference. This always keeps the referenced object.
  Author:
    Rammi

- - ### Field Summary

    - ### Fields inherited from interface de.caff.generics.util.IReference

      `NULL_REF`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HardReferenceImpl(T obj)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `get()` Get the type.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface de.caff.generics.util.IReference

      `hard, isNull, nullRef, soft, weak`

- - ### Constructor Detail

    - #### HardReferenceImpl

          public HardReferenceImpl(@NotNull
                                   T obj)

      Constructor.
      Parameters:
        `obj` - referenced object

  - ### Method Detail

    - #### get

          @NotNull
          public T get()

      Get the type.

      This implementation will never return `null`.

      Specified by:
        `get` in interface `IReference<T>`
      Returns:
        referenced object