Optional (Apache Tomcat 11.0.22 API Documentation)
Description: declaration: package: org.apache.el.stream, class: Optional

# Class Optional

java.lang.Object
org.apache.el.stream.Optional

public class Optional extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `get()`
  `void`
  `ifPresent(LambdaExpression le)`
  `Object`
  `orElse(Object other)`
  `Object`
  `orElseGet(Object le)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### get

    public Object get() throws ELException
    Throws:
      `ELException`

  - ### ifPresent

    public void ifPresent(LambdaExpression le)

  - ### orElse

    public Object orElse(Object other)

  - ### orElseGet

    public Object orElseGet(Object le)