If a value is present, returns the value, otherwise throws NoSuchElementException.
NoSuchElementException
Returns: the non- null value described by this Optional
null
Optional
Exceptions:
Since: 10
Diagram: Optional