Interface Optional<T>

Java Optional type.

Type Parameters

  • T

Hierarchy

  • Optional

Methods

  • Returns

    the wrapped object. May throw an Exception in case [isPresent] would return false.

    Returns T

  • Returns

    true if the optional does not contain a value, false otherwise.

    Returns boolean

  • Returns

    true if the optional contains a value, false otherwise.

    Returns boolean