Package org.eclipse.jgit.util
Class Holder<T>
- java.lang.Object
-
- org.eclipse.jgit.util.Holder<T>
-
- Type Parameters:
T
- the type of value held by thisHolder
public class Holder<T> extends java.lang.Object
Holder of an object.- Since:
- 4.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
Get the value held by thisHolder
void
set(T value)
Set a new value held by thisHolder
-
-
-
Field Detail
-
value
private T value
-
-
Constructor Detail
-
Holder
public Holder(T value)
Constructor for Holder.
- Parameters:
value
- is the initial value that isset(Object)
-
-