Optional (Apache Tomcat 8.5.57 API Documentation)

org.apache.el.stream

## Class Optional

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

-     public class Optional
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and 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 Detail

    - #### 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)

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.