Class Holder<T>

java.lang.Object
org.eclipse.jgit.util.Holder<T>
Type Parameters:
T - the type of value held by this Holder

public class Holder<T> extends Object
Holder of an object.
Since:
4.3
  • Field Details

    • value

      private T value
  • Constructor Details

    • Holder

      public Holder(T value)

      Constructor for Holder.

      Parameters:
      value - is the initial value that is set(Object)
  • Method Details

    • get

      public T get()
      Get the value held by this Holder
      Returns:
      the value held by this Holder
    • set

      public void set(T value)
      Set a new value held by this Holder
      Parameters:
      value - to be set as new value held by this Holder