<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>[common]Optional</title> <link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "../../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode") const savedDarkMode = storage ? JSON.parse(storage) : false if(savedDarkMode === true){ document.getElementsByTagName("html")[0].classList.add("theme-dark") }</script> <script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script> <link href="../../../styles/style.css" rel="Stylesheet"> <link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"> <link href="../../../styles/main.css" rel="Stylesheet"> <link href="../../../styles/prism.css" rel="Stylesheet"> <link href="../../../styles/logo-styles.css" rel="Stylesheet"> <script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script> <script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script> <script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script> <script type="text/javascript" src="../../../scripts/main.js" defer="defer"></script> <script type="text/javascript" src="../../../scripts/prism.js" async="async"></script> </head> <body> <div class="navigation-wrapper" id="navigation-wrapper"> <div id="leftToggler"><span class="icon-toggler"></span></div> <div class="library-name"> <a href="../../../index.html"> <span>micro_utils.dokka</span> </a> </div> <div> 0.12.4 </div> <div class="pull-right d-flex"> <div class="filter-section" id="filter-section"> <button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":micro_utils.dokka:dokkaHtml/androidMain">android</button> <button class="platform-tag platform-selector common-like" data-active="" data-filter=":micro_utils.dokka:dokkaHtml/commonMain">common</button> <button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button> </div> <button id="theme-toggle-button"><span id="theme-toggle"></span></button> <div id="searchBar"></div> </div> </div> <div id="container"> <div id="leftColumn"> <div id="sideMenu"></div> </div> <div id="main"> <div class="main-content" id="content" pageIds="micro_utils.dokka::dev.inmo.micro_utils.common/Optional///PointingToDeclaration//-1478683138"> <div class="breadcrumbs"><a href="../../../index.html">micro_utils.dokka</a><span class="delimiter">/</span><a href="../index.html">dev.inmo.micro_utils.common</a><span class="delimiter">/</span><a href="index.html">[common]Optional</a></div> <div class="cover "> <h1 class="cover"><span><span>Optional</span></span></h1> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">data </span><span class="token keyword">class </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="index.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">This type represents <a href="index.html">T</a> as not only potentially nullable data, but also as a data which can not be presented. This type will be useful in cases when <a href="index.html">T</a> is nullable and null as valuable data too in time of data absence should be presented by some third type.</p><p class="paragraph">Let's imagine, you have nullable name in some database. In case when name is not nullable everything is clear - null will represent absence of row in the database. In case when name is nullable null will be a little bit dual-meaning, cause this null will say nothing about availability of the row (of course, it is exaggerated example)</p></div> </div> </div> <div class="tabbedcontent"> <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Properties">Properties</button><button class="section-tab" data-togglable="Extensions">Extensions</button><button class="section-tab" data-togglable="See also">See also</button></div> <div class="tabs-section-body"> <h2 class="">See also</h2> <div data-togglable="See also"> <div class="platform-hinted WithExtraAttributes with-platform-tabs" data-platform-hinted="data-platform-hinted" data-togglable="See also"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div data-togglable="See also"><div class="table" data-togglable="See also"><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><a href="-companion/absent.html"><span>dev.</span><wbr></wbr><span>inmo.</span><wbr></wbr><span>micro_utils.</span><wbr></wbr><span>common.</span><wbr></wbr><span>Optional.</span><wbr></wbr><span>Companion</span></a></div></span></div><div><div class="title"><div data-togglable="See also"></div></div></div></div></div><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><span data-unresolved-link="dev.inmo.micro_utils.common//optional/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#/PointingToDeclaration/"><span>Optional.</span><wbr></wbr><span>optional</span></span></div></span></div><div><div class="title"><div data-togglable="See also"></div></div></div></div></div><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><a href="../[common]on-presented.html"><span>Optional.</span><wbr></wbr><span>on</span><wbr></wbr><span><span>Presented</span></span></a></div></span></div><div><div class="title"><div data-togglable="See also"></div></div></div></div></div><div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><a href="../[common]on-absent.html"><span>Optional.</span><wbr></wbr><span>onAbsent</span></a></div></span></div><div><div class="title"><div data-togglable="See also"></div></div></div></div></div></div></div></div> </div> </div> <h2 class="">Types</h2> <div class="table" data-togglable="Types"><a data-name="-503622347%2FClasslikes%2F-1478683138" anchor-label="Companion" id="-503622347%2FClasslikes%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="-companion/index.html"><span><span>Companion</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-503622347%2FClasslikes%2F-1478683138"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="-companion/index.html">Companion</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div> </div> </div> </div> </div> </div> </div> <h2 class="">Properties</h2> <div class="table" data-togglable="Properties"><a data-name="-1373844350%2FProperties%2F-1478683138" anchor-label="data" id="-1373844350%2FProperties%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="data.html"><span><span>data</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1373844350%2FProperties%2F-1478683138"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted" data-togglable="Properties"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><a data-name="-1373844350%2FProperties%2F-1478683138" anchor-label="data" id="-1373844350%2FProperties%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="data.html">data</a><span class="token operator">: </span><a href="index.html">T</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div> </div> </div> </div> </div> </div> <a data-name="1174995806%2FProperties%2F-1478683138" anchor-label="dataPresented" id="1174995806%2FProperties%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><a href="data-presented.html"><span>data</span><wbr></wbr><span><span>Presented</span></span></a></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1174995806%2FProperties%2F-1478683138"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted" data-togglable="Properties"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><a data-name="1174995806%2FProperties%2F-1478683138" anchor-label="dataPresented" id="1174995806%2FProperties%2F-1478683138" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"></a><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="data-presented.html">dataPresented</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div> </div> </div> </div> </div> </div> </div> <h2 class="tabbedcontent">Extensions</h2> <div class="table" data-togglable="Extensions"><a data-name="266058348%2FExtensions%2F1737121690" anchor-label="dataOrElse" id="266058348%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//dataOrElse/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Function0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"><span>data</span><wbr></wbr><span>Or</span><wbr></wbr><span><span>Else</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="266058348%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-else.html">T</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-else.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]data-or-else.html"><span class="token function">dataOrElse</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[android]data-or-else.html">T</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]data-or-else.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[android]-optional/data.html">Optional.data</a> if <a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or call <a href="../[android]data-or-else.html">block</a> and returns the result of it</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-else.html">T</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-else.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]data-or-else.html"><span class="token function">dataOrElse</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[common]data-or-else.html">T</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[common]data-or-else.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="data.html">Optional.data</a> if <a href="data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or call <a href="../[common]data-or-else.html">block</a> and returns the result of it</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-else.html">T</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-else.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]data-or-else.html"><span class="token function">dataOrElse</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[jvm]data-or-else.html">T</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]data-or-else.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[jvm]-optional/data.html">Optional.data</a> if <a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or call <a href="../[jvm]data-or-else.html">block</a> and returns the result of it</p></div></div> </div> </div> </div> </div> </div> <a data-name="-740158821%2FExtensions%2F1737121690" anchor-label="dataOrNull" id="-740158821%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//dataOrNull/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#/PointingToDeclaration/"><span>data</span><wbr></wbr><span>Or</span><wbr></wbr><span><span>Null</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-740158821%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-null.html">T</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-null.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]data-or-null.html"><span class="token function">dataOrNull</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]data-or-null.html">T</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[android]-optional/data.html">Optional.data</a> if <a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or null otherwise</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-null.html">T</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-null.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]data-or-null.html"><span class="token function">dataOrNull</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[common]data-or-null.html">T</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="data.html">Optional.data</a> if <a href="data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or null otherwise</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-null.html">T</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-null.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]data-or-null.html"><span class="token function">dataOrNull</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]data-or-null.html">T</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[jvm]-optional/data.html">Optional.data</a> if <a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or null otherwise</p></div></div> </div> </div> </div> </div> </div> <a data-name="1247045035%2FExtensions%2F1737121690" anchor-label="dataOrThrow" id="1247045035%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//dataOrThrow/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Throwable/PointingToDeclaration/"><span>data</span><wbr></wbr><span>Or</span><wbr></wbr><span><span>Throw</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1247045035%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-throw.html">T</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]data-or-throw.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]data-or-throw.html"><span class="token function">dataOrThrow</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">throwable<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]data-or-throw.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[android]-optional/data.html">Optional.data</a> if <a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or throw <a href="../[android]data-or-throw.html">throwable</a> otherwise</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-throw.html">T</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]data-or-throw.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]data-or-throw.html"><span class="token function">dataOrThrow</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">throwable<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[common]data-or-throw.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="data.html">Optional.data</a> if <a href="data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or throw <a href="../[common]data-or-throw.html">throwable</a> otherwise</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-throw.html">T</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]data-or-throw.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]data-or-throw.html"><span class="token function">dataOrThrow</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">throwable<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]data-or-throw.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Returns <a href="../[jvm]-optional/data.html">Optional.data</a> if <a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> of <span data-unresolved-link="dev.inmo.micro_utils.common//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is true, or throw <a href="../[jvm]data-or-throw.html">throwable</a> otherwise</p></div></div> </div> </div> </div> </div> </div> <a data-name="751780544%2FExtensions%2F1737121690" anchor-label="mapOnAbsent" id="751780544%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//mapOnAbsent/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Function0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"><span>map</span><wbr></wbr><span>On</span><wbr></wbr><span><span>Absent</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="751780544%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]map-on-absent.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[android]map-on-absent.html">R</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]map-on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]map-on-absent.html"><span class="token function">mapOnAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[android]map-on-absent.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]map-on-absent.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[android]map-on-absent.html">block</a> when data presented (<a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]map-on-absent.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[common]map-on-absent.html">R</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]map-on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]map-on-absent.html"><span class="token function">mapOnAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[common]map-on-absent.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[common]map-on-absent.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[common]map-on-absent.html">block</a> when data presented (<a href="data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]map-on-absent.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[jvm]map-on-absent.html">R</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]map-on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]map-on-absent.html"><span class="token function">mapOnAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[jvm]map-on-absent.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]map-on-absent.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[jvm]map-on-absent.html">block</a> when data presented (<a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div> </div> </div> </div> </div> </div> <a data-name="1620645484%2FExtensions%2F1737121690" anchor-label="mapOnPresented" id="1620645484%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//mapOnPresented/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Function1[TypeParam(bounds=[kotlin.Any?]),TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"><span>map</span><wbr></wbr><span>On</span><wbr></wbr><span><span>Presented</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1620645484%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]map-on-presented.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[android]map-on-presented.html">R</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]map-on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]map-on-presented.html"><span class="token function">mapOnPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[android]map-on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[android]map-on-presented.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]map-on-presented.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[android]map-on-presented.html">block</a> when data presented (<a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]map-on-presented.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[common]map-on-presented.html">R</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]map-on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]map-on-presented.html"><span class="token function">mapOnPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[common]map-on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[common]map-on-presented.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[common]map-on-presented.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[common]map-on-presented.html">block</a> when data presented (<a href="data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]map-on-presented.html">T</a><span class="token punctuation">, </span><span class="token keyword"></span><a href="../[jvm]map-on-presented.html">R</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]map-on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]map-on-presented.html"><span class="token function">mapOnPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[jvm]map-on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="../[jvm]map-on-presented.html">R</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]map-on-presented.html">R</a><span class="token operator">?</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[jvm]map-on-presented.html">block</a> when data presented (<a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div> </div> </div> </div> </div> </div> <a data-name="-1291152217%2FExtensions%2F1737121690" anchor-label="onAbsent" id="-1291152217%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//onAbsent/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Function0[kotlin.Unit]/PointingToDeclaration/"><span>on</span><wbr></wbr><span><span>Absent</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1291152217%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-absent.html">T</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]on-absent.html"><span class="token function">onAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-absent.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[android]on-absent.html">block</a> when data absent (<a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> == false)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-absent.html">T</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]on-absent.html"><span class="token function">onAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-absent.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[common]on-absent.html">block</a> when data absent (<a href="data-presented.html">Optional.dataPresented</a> == false)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-absent.html">T</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-absent.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]on-absent.html"><span class="token function">onAbsent</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-absent.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[jvm]on-absent.html">block</a> when data absent (<a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> == false)</p></div></div> </div> </div> </div> </div> </div> <a data-name="-1318449249%2FExtensions%2F1737121690" anchor-label="onPresented" id="-1318449249%2FExtensions%2F1737121690" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"></a> <div class="table-row" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain :micro_utils.dokka:dokkaHtml/commonMain :micro_utils.dokka:dokkaHtml/jvmMain"> <div class="main-subrow keyValue "> <div class=""><span class="inline-flex"> <div><span data-unresolved-link="dev.inmo.micro_utils.common//onPresented/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.Function1[TypeParam(bounds=[kotlin.Any?]),kotlin.Unit]/PointingToDeclaration/"><span>on</span><wbr></wbr><span><span>Presented</span></span></span></div> <span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1318449249%2FExtensions%2F1737121690"></span> <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div> </span></span></div> <div> <div class="title"> <div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted"> <div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain" data-active="" data-toggle=":micro_utils.dokka:dokkaHtml/androidMain">android</button><button class="platform-bookmark common-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain" data-toggle=":micro_utils.dokka:dokkaHtml/commonMain">common</button><button class="platform-bookmark jvm-like" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain" data-toggle=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div> <div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-presented.html">T</a><span class="token operator">> </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[android]on-presented.html"><span class="token function">onPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[android]on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[android]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[android]on-presented.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[android]on-presented.html">block</a> when data presented (<a href="../[android]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-presented.html">T</a><span class="token operator">> </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[common]on-presented.html"><span class="token function">onPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[common]on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[common]on-presented.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[common]on-presented.html">block</a> when data presented (<a href="data-presented.html">Optional.dataPresented</a> == true)</p></div></div><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">inline </span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-presented.html">T</a><span class="token operator">> </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-presented.html">T</a><span class="token operator">></span><span class="token punctuation">.</span><a href="../[jvm]on-presented.html"><span class="token function">onPresented</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">block<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><a href="../[jvm]on-presented.html">T</a><span class="token punctuation">)</span><span class="token operator"> -> </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../[jvm]-optional/index.html">Optional</a><span class="token operator"><</span><span class="token keyword"></span><a href="../[jvm]on-presented.html">T</a><span class="token operator">></span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Will call <a href="../[jvm]on-presented.html">block</a> when data presented (<a href="../[jvm]-optional/data-presented.html">Optional.dataPresented</a> == true)</p></div></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="footer"> <span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span> </div> </div> </div> </body> </html>