Interface Optional<T>

    • Method Detail

      • isPresent

        boolean isPresent()
        Returns whether the optional value is present.
      • value

        T value()
        Returns the optional value.
        Throws:
        java.util.NoSuchElementException - if the optional value is not present.