Interface ModuleLayerFromSingleClassLoaderDecorator.Optional

Enclosing class:
ModuleLayerFromSingleClassLoaderDecorator

@Proxied("java.util.Optional") protected static interface ModuleLayerFromSingleClassLoaderDecorator.Optional
A proxy for the java.util.Optional type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an empty optional.
    of(Object value)
    Creates an optional containing the given value.
  • Method Details

    • of

      @IsStatic Object of(Object value)
      Creates an optional containing the given value.
      Parameters:
      value - The value to wrap.
      Returns:
      An optional containing the value.
    • empty

      @IsStatic Object empty()
      Creates an empty optional.
      Returns:
      An empty optional.