Class Entity.ReferencedEntity<T>

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

    public static class Entity.ReferencedEntity<T>
    extends java.lang.Object
    implements Entity<T>
    Holds an entity referenced using the input Reference
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ref.Reference<T> reference  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferencedEntity​(java.lang.ref.Reference<T> reference)  
    • 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

      • reference

        private final java.lang.ref.Reference<T> reference
    • Constructor Detail

      • ReferencedEntity

        ReferencedEntity​(java.lang.ref.Reference<T> reference)
    • Method Detail

      • get

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