Class Ref<T>


  • public class Ref<T>
    extends java.lang.Object
    Keeps a reference to another object
    Since:
    5.2
    Author:
    Bela Ban
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T obj  
    • Constructor Summary

      Constructors 
      Constructor Description
      Ref​(T obj)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      boolean isSet()  
      Ref<T> set​(T obj)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • obj

        protected T obj
    • Constructor Detail

      • Ref

        public Ref​(T obj)
    • Method Detail

      • get

        public T get()
      • set

        public Ref<T> set​(T obj)
      • isSet

        public boolean isSet()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object