@JavaDispatcher.Proxied(value="java.util.Optional") protected static interface ModuleDescription.ForLoadedModule.Optional
java.util.Optional.| Modifier and Type | Method and Description |
|---|---|
Object |
orElse(Object value,
Object fallback)
Returns the value if present, otherwise returns the fallback value.
|
@MaybeNull Object orElse(Object value, @MaybeNull Object fallback)
value - The java.util.Optional instance.fallback - The fallback value to return if the optional is empty.Copyright © 2014–2025. All rights reserved.