java.lang.Object
org.eclipse.jgit.internal.util.Optionally.Hard<T>
- Type Parameters:
T
- type of the mutable optional object
- All Implemented Interfaces:
Optionally<T>
- Enclosing interface:
- Optionally<T>
A permanent(hard) reference to an object
-
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
FieldsFields inherited from interface org.eclipse.jgit.internal.util.Optionally
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the objectGet an Optional representing the current state of the object
-
Field Details
-
element
The mutable optional object
-
-
Constructor Details
-
Hard
- Parameters:
element
- the mutable optional object
-
-
Method Details
-
clear
public void clear()Description copied from interface:Optionally
Clear the object- Specified by:
clear
in interfaceOptionally<T>
-
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
-