java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
org.eclipse.jgit.internal.util.Optionally.Soft<T>
- Type Parameters:
T
- type of the mutable optional object
- All Implemented Interfaces:
Optionally<T>
- Enclosing interface:
- Optionally<T>
A SoftReference Optionally
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jgit.internal.util.Optionally
Optionally.Empty<T>, Optionally.Hard<T>, Optionally.Soft<T>
-
Field Summary
Fields inherited from interface org.eclipse.jgit.internal.util.Optionally
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet an Optional representing the current state of the objectMethods inherited from class java.lang.ref.SoftReference
get
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, isEnqueued, reachabilityFence, refersTo
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jgit.internal.util.Optionally
clear
-
Constructor Details
-
Soft
- Parameters:
t
- the mutable optional object
-
-
Method Details
-
getOptional
Description copied from interface:Optionally
Get an Optional representing the current state of the object- Specified by:
getOptional
in interfaceOptionally<T>
- Returns:
- the mutable optional object
-