Class Reference<T>

java.lang.Object
VASSAL.tools.lang.Reference<T>

public class Reference<T> extends Object
Holds a mutable reference. This class is useful in cases where a reference to an object must be passed to a method without the caller retaining a reference to that object itself.
Since:
3.2.0
Author:
Joel Uckelman
  • Field Details

    • obj

      public T obj
  • Constructor Details

    • Reference

      public Reference(T obj)
      Creates a Reference.
      Parameters:
      obj - the referenced object