Package graphql.util

Class MutableRef<T>

java.lang.Object
graphql.util.MutableRef<T>
Type Parameters:
T - for two

public class MutableRef<T> extends 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 Details

    • value

      public T value
  • Constructor Details

    • MutableRef

      public MutableRef()