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

Package org.apache.el.stream

# 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 java.lang.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)