mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-30 14:08:46 +00:00
292 lines
45 KiB
HTML
292 lines
45 KiB
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 type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.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" async="async"></script> </head>
|
|
<body>
|
|
<div id="container">
|
|
<div id="leftColumn"><a href="../../../index.html">
|
|
<div id="logo"></div>
|
|
</a>
|
|
<div id="paneSearch"></div>
|
|
<div id="sideMenu"></div>
|
|
</div>
|
|
<div id="main">
|
|
<div id="leftToggler"><span class="icon-toggler"></span></div>
|
|
<script type="text/javascript" src="../../../scripts/main.js"></script> <div class="main-content" id="content" pageIds="micro_utils.dokka::dev.inmo.micro_utils.common/Optional///PointingToDeclaration//-1478683138">
|
|
<div class="navigation-wrapper" id="navigation-wrapper">
|
|
<div class="breadcrumbs"><a href="../../../index.html">micro_utils.dokka</a>/<a href="../index.html">dev.inmo.micro_utils.common</a>/<a href="index.html">[common]Optional</a></div>
|
|
<div class="pull-right d-flex">
|
|
<div class="filter-section" id="filter-section"><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/androidMain">android</button><button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":micro_utils.dokka:dokkaHtml/jvmMain">jvm</button></div>
|
|
<div id="searchBar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="cover ">
|
|
<h1 class="cover"><span><span>Optional</span></span></h1>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">data class <a href="index.html">Optional</a><<a href="index.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><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="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" data-platform-hinted="data-platform-hinted" data-togglable="See also"><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 RowTitle"><div class=""><span class="inline-flex"><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></span><span class="inline-flex"><div data-togglable="See also"></div></span></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 RowTitle"><div class=""><span class="inline-flex"><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></span><span class="inline-flex"><div data-togglable="See also"></div></span></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 RowTitle"><div class=""><span class="inline-flex"><a href="../[common]on-presented.html"><span>Optional.</span><wbr></wbr><span>on</span><wbr></wbr><span><span>Presented</span></span></a></span><span class="inline-flex"><div data-togglable="See also"></div></span></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 RowTitle"><div class=""><span class="inline-flex"><a href="../[common]on-absent.html"><span>Optional.</span><wbr></wbr><span>onAbsent</span></a></span><span class="inline-flex"><div data-togglable="See also"></div></span></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"><a href="-companion/index.html"><span><span>Companion</span></span></a><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="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
<div class="title"><div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">object <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>
|
|
</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"><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><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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">android</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">fun <<a href="../[android]data-or-else.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]data-or-else.html">T</a>>.<a href="../[android]data-or-else.html">dataOrElse</a>(block: () -> <a href="../[android]data-or-else.html">T</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">fun <<a href="../[common]data-or-else.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]data-or-else.html">T</a>>.<a href="../[common]data-or-else.html">dataOrElse</a>(block: () -> <a href="../[common]data-or-else.html">T</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">jvm</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">fun <<a href="../[jvm]data-or-else.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]data-or-else.html">T</a>>.<a href="../[jvm]data-or-else.html">dataOrElse</a>(block: () -> <a href="../[jvm]data-or-else.html">T</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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>
|
|
<a data-name="524233051%2FExtensions%2F1737121690" anchor-label="dataOrElseSuspendable" id="524233051%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"><span data-unresolved-link="dev.inmo.micro_utils.common//dataOrElseSuspendable/dev.inmo.micro_utils.common.Optional[TypeParam(bounds=[kotlin.Any?])]#kotlin.coroutines.SuspendFunction0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"><span>data</span><wbr></wbr><span>Or</span><wbr></wbr><span>Else</span><wbr></wbr><span><span>Suspendable</span></span></span><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="524233051%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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">android</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">suspend fun <<a href="../[android]data-or-else-suspendable.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]data-or-else-suspendable.html">T</a>>.<a href="../[android]data-or-else-suspendable.html">dataOrElseSuspendable</a>(block: suspend () -> <a href="../[android]data-or-else-suspendable.html">T</a>): <a href="../[android]data-or-else-suspendable.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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-suspendable.html">block</a> and returns the result of it</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">suspend fun <<a href="../[common]data-or-else-suspendable.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]data-or-else-suspendable.html">T</a>>.<a href="../[common]data-or-else-suspendable.html">dataOrElseSuspendable</a>(block: suspend () -> <a href="../[common]data-or-else-suspendable.html">T</a>): <a href="../[common]data-or-else-suspendable.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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-suspendable.html">block</a> and returns the result of it</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">jvm</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">suspend fun <<a href="../[jvm]data-or-else-suspendable.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]data-or-else-suspendable.html">T</a>>.<a href="../[jvm]data-or-else-suspendable.html">dataOrElseSuspendable</a>(block: suspend () -> <a href="../[jvm]data-or-else-suspendable.html">T</a>): <a href="../[jvm]data-or-else-suspendable.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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-suspendable.html">block</a> and returns the result of it</p></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"><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><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="divergent-group" 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="with-platform-tags"><span class="pull-right"></span></div>
|
|
|
|
<div>
|
|
<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">fun <<a href="../[android]data-or-null.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]data-or-null.html">T</a>>.<a href="../[android]data-or-null.html">dataOrNull</a>(): <a href="../[android]data-or-null.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><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">fun <<a href="../[common]data-or-null.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]data-or-null.html">T</a>>.<a href="../[common]data-or-null.html">dataOrNull</a>(): <a href="../[common]data-or-null.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><div class="content sourceset-depenent-content" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">fun <<a href="../[jvm]data-or-null.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]data-or-null.html">T</a>>.<a href="../[jvm]data-or-null.html">dataOrNull</a>(): <a href="../[jvm]data-or-null.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> </div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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>
|
|
<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"><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><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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">android</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">fun <<a href="../[android]data-or-throw.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]data-or-throw.html">T</a>>.<a href="../[android]data-or-throw.html">dataOrThrow</a>(throwable: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">fun <<a href="../[common]data-or-throw.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]data-or-throw.html">T</a>>.<a href="../[common]data-or-throw.html">dataOrThrow</a>(throwable: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">jvm</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">fun <<a href="../[jvm]data-or-throw.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]data-or-throw.html">T</a>>.<a href="../[jvm]data-or-throw.html">dataOrThrow</a>(throwable: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html">Throwable</a>): <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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Returns <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/data/#/PointingToDeclaration/">Optional.data</span> if <span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> 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>
|
|
<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"><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><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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">android</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">fun <<a href="../[android]on-absent.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]on-absent.html">T</a>>.<a href="../[android]on-absent.html">onAbsent</a>(block: () -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]on-absent.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[android]on-absent.html">block</a> when data absent (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == false)</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">fun <<a href="../[common]on-absent.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]on-absent.html">T</a>>.<a href="../[common]on-absent.html">onAbsent</a>(block: () -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="index.html">Optional</a><<a href="../[common]on-absent.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[common]on-absent.html">block</a> when data absent (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == false)</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">jvm</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">fun <<a href="../[jvm]on-absent.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]on-absent.html">T</a>>.<a href="../[jvm]on-absent.html">onAbsent</a>(block: () -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]on-absent.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[jvm]on-absent.html">block</a> when data absent (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == false)</p></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"><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><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="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/androidMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/androidMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">android</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><div class="symbol monospace">fun <<a href="../[android]on-presented.html">T</a>> <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]on-presented.html">T</a>>.<a href="../[android]on-presented.html">onPresented</a>(block: (<a href="../[android]on-presented.html">T</a>) -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../[android]-optional/index.html">Optional</a><<a href="../[android]on-presented.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[android]on-presented.html">block</a> when data presented (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == true)</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/commonMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag common-like">common</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/commonMain"><div class="symbol monospace">fun <<a href="../[common]on-presented.html">T</a>> <a href="index.html">Optional</a><<a href="../[common]on-presented.html">T</a>>.<a href="../[common]on-presented.html">onPresented</a>(block: (<a href="../[common]on-presented.html">T</a>) -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="index.html">Optional</a><<a href="../[common]on-presented.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[common]on-presented.html">block</a> when data presented (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == true)</p></div></div>
|
|
<div class="divergent-group" data-filterable-current=":micro_utils.dokka:dokkaHtml/jvmMain" data-filterable-set=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="with-platform-tags"><span class="pull-right">
|
|
<div class="platform-tags ">
|
|
<div class="platform-tag jvm-like">jvm</div>
|
|
</div>
|
|
</span></div>
|
|
|
|
<div>
|
|
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":micro_utils.dokka:dokkaHtml/jvmMain"><div class="symbol monospace">fun <<a href="../[jvm]on-presented.html">T</a>> <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]on-presented.html">T</a>>.<a href="../[jvm]on-presented.html">onPresented</a>(block: (<a href="../[jvm]on-presented.html">T</a>) -> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a>): <a href="../[jvm]-optional/index.html">Optional</a><<a href="../[jvm]on-presented.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></div>
|
|
</div>
|
|
<div class="brief "><p class="paragraph">Will call <a href="../[jvm]on-presented.html">block</a> when data presented (<span data-unresolved-link="dev.inmo.micro_utils.common/Optional/dataPresented/#/PointingToDeclaration/">Optional.dataPresented</span> == true)</p></div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 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>
|
|
|