Interface ModuleDescription.ForLoadedModule.Optional
- Enclosing class:
ModuleDescription.ForLoadedModule
@Proxied("java.util.Optional")
protected static interface ModuleDescription.ForLoadedModule.Optional
A proxy for interacting with
java.util.Optional.-
Method Summary
-
Method Details
-
orElse
Returns the value if present, otherwise returns the fallback value.- Parameters:
value- Thejava.util.Optionalinstance.fallback- The fallback value to return if the optional is empty.- Returns:
- The value if present, otherwise the fallback value.
-