Class Ref<T>

java.lang.Object
overit.geocall.util.Ref<T>

public class Ref<T> extends Object
Object containing an object. Usable to pass an object as a reference
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected T
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ref()
    Empty Constructor
    Ref(T t)
    Constructor method used to create an object as a reference
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the object inside the reference
    void
    set(T t)
    Sets the object inside the reference

    Methods inherited from class java.lang.Object

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

    • _t

      protected T _t
  • Constructor Details

    • Ref

      public Ref()
      Empty Constructor
    • Ref

      public Ref(T t)
      Constructor method used to create an object as a reference
      Parameters:
      t - The object to insert inside the reference
  • Method Details

    • get

      public T get()
      Returns the object inside the reference
      Returns:
      The object inside the reference
    • set

      public void set(T t)
      Sets the object inside the reference
      Parameters:
      t - The object to set inside the reference