Package graphql.util

Class MutableRef<T>

  • Type Parameters:
    T - for two

    public class MutableRef<T>
    extends java.lang.Object
    This class is useful for creating a mutable reference to a variable that can be changed when you are in an effectively final bit of code. Its more performant than an AtomicReference to gain mutability. Use this very carefully - Its not expected to be commonly used.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableRef()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • value

        public T value
    • Constructor Detail

      • MutableRef

        public MutableRef()