java.lang.Object
org.eclipse.jgit.internal.util.Optionally.Empty<T>
- Type Parameters:
T
- type of the mutable optional object
- All Implemented Interfaces:
Optionally<T>
- Enclosing interface:
- Optionally<T>
A permanently empty 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 TypeMethodDescriptionvoid
clear()
Clear the objectGet an Optional representing the current state of the object
-
Constructor Details
-
Empty
public Empty()
-
-
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
-