Interface ModuleLayerFromSingleClassLoaderDecorator.Optional

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object empty()
      Creates an empty optional.
      java.lang.Object of​(java.lang.Object value)
      Creates an optional containing the given value.
    • Method Detail

      • of

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

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