Package 

Class Ref

  • All Implemented Interfaces:

    
    public final class Ref<T extends Object>
    
                        

    Smart pointer holding a mutable reference to an object.

    Get the reference by calling ref() Conveniently, the reference can be reset by setting the ref property.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

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

      Constructors 
      Constructor Description
      Ref(T ref)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final T getRef()
      final Unit setRef(T ref)
      final T invoke()
      • Methods inherited from class java.lang.Object

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