Top Description Fields Constructors Methods
org.eclipse.jgit.util

public Class Holder<T>

extends Object
Class Inheritance
Type Parameters
<T>
the type of value held by this org.eclipse.jgit.util.Holder

Holder of an object.
Since
4.3

Field Summary

Modifier and TypeField and Description
private T

Constructor Summary

AccessConstructor and Description
public
Holder(T
is the initial value that is set(Object)
value
)

Constructor for Holder.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the value held by this org.eclipse.jgit.util.Holder
get
()

Get the value held by this org.eclipse.jgit.util.Holder

public void
set(T
to be set as new value held by this org.eclipse.jgit.util.Holder
value
)

Set a new value held by this org.eclipse.jgit.util.Holder

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

valueback to summary
private T value

Constructor Detail

Holderback to summary
public Holder(T value)

Constructor for Holder.

Parameters
value:T

is the initial value that is set(Object)

Method Detail

getback to summary
public T get()

Get the value held by this org.eclipse.jgit.util.Holder

Returns:T

the value held by this org.eclipse.jgit.util.Holder

setback to summary
public void set(T value)

Set a new value held by this org.eclipse.jgit.util.Holder

Parameters
value:T

to be set as new value held by this org.eclipse.jgit.util.Holder