Class Entity.StrongEntity<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Entity<T>
    Enclosing interface:
    Entity<T>

    public static class Entity.StrongEntity<T>
    extends java.lang.Object
    implements Entity<T>
    A strongly referenced entity
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T referent  
    • Constructor Summary

      Constructors 
      Constructor Description
      StrongEntity​(T referent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • referent

        private final T referent
    • Constructor Detail

      • StrongEntity

        StrongEntity​(T referent)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Entity<T>
        Returns:
        the instance or null if nothing is available