Class SimpleReference<T>

    • Constructor Detail

      • SimpleReference

        public SimpleReference()
    • Method Detail

      • get

        public T get()
        Description copied from interface: ObjectReference
        Retrieve an actual reference to the object. Returns null if the reference is not available or has not been populated yet.
        Specified by:
        get in interface ObjectReference<T>
        Returns:
        an actual reference to the object.
      • set

        public void set​(T item)
        Description copied from interface: ObjectReference
        Assign an object to the reference.
        Specified by:
        set in interface ObjectReference<T>
        Parameters:
        item - the object to assign to the reference. May be null.