Skip to content

Commit f836db8

Browse files
committed
v3.3.0 Tuple.prepend, isNotNullNorEmpty
1 parent ec78547 commit f836db8

File tree

195 files changed

+714
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+714
-309
lines changed

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
<!-- for main -->
2-
3-
[![Download](https://img.shields.io/badge/Download-3.2.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.2.0)
2+
<!--
3+
[![Download](https://img.shields.io/badge/Download-3.3.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.3.0)
44
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
55
[![Build Status Ubuntu](https://github.com/robstoll/kbox/actions/workflows/build-ubuntu.yml/badge.svg?event=push)](https://github.com/robstoll/kbox/actions/workflows/build-ubuntu.yml)
66
[![Build Status Windows](https://github.com/robstoll/kbox/actions/workflows/build-windows.yml/badge.svg?event=push)](https://github.com/robstoll/kbox/actions/workflows/build-windows.yml)
7-
7+
-->
88
<!-- for a specific release -->
9-
<!--
10-
[![Download](https://img.shields.io/badge/Download-3.2.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.2.0)
9+
10+
[![Download](https://img.shields.io/badge/Download-3.3.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.3.0)
1111
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
12-
-->
1312

1413
# KBox
1514

1615
KBox is a very small but useful utility library for Kotlin (JVM, Android and JS) providing functions which are missing
17-
in the stdlib such as:
18-
19-
- [failIf](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/failIf.kt)
20-
- [prefix takeIf/takeUnless](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/takeIf.kt)
21-
- [letIf/runIf/alsoIf/applyIf](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/xyzIf.kt)
22-
- [blankToNull](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/blankToNull.kt)
23-
- [isNotNullNorEmpty/Blank](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt)
24-
- [identity](https://github.com/robstoll/kbox/tree/main/src/commonMain/kotlin/ch/tutteli/kbox/identity.kt)
25-
- [Tuple4(Like) - Tuple9(Like)](https://github.com/robstoll/kbox/tree/main/src/commonMain/generated/kotlin/ch/tutteli/kbox)
16+
in the stdlib and help in making code more readable such as:
17+
18+
- [failIf](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/failIf.kt)
19+
- [prefix takeIf/takeUnless](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/takeIf.kt)
20+
- [letIf/runIf/alsoIf/applyIf](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/xyzIf.kt)
21+
- [blankToNull](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/blankToNull.kt)
22+
- [isNotNullNorEmpty/Blank](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/isNotNullAndNot.kt)
23+
- [identity](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/identity.kt)
24+
- [Tuple4(Like) - Tuple9(Like)](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/generated/kotlin/ch/tutteli/kbox)
2625
(including functions mapA1 - mapA9, append, glue)
27-
- [Triple/Pair.mapFirst/Second/Third](https://github.com/robstoll/kbox/tree/main/src/commonMain/generated/kotlin/ch/tutteli/kbox/tupleMap.kt#L12)
28-
- [toVararg](https://github.com/robstoll/kbox/tree/main/src/commonMain/generated/kotlin/ch/tutteli/kbox/toVararg.kt), [mapVararg](https://github.com/robstoll/kbox/tree/main/src/commonMain/generated/kotlin/ch/tutteli/kbox/mapVararg.kt), [varargToList (glue)](https://github.com/robstoll/kbox/tree/main/src/commonMain/generated/kotlin/ch/tutteli/kbox/varargToList.kt)
26+
- [Triple/Pair.mapFirst/Second/Third](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/generated/kotlin/ch/tutteli/kbox/tupleMap.kt#L12)
27+
- [toVararg](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/generated/kotlin/ch/tutteli/kbox/toVararg.kt), [mapVararg](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/generated/kotlin/ch/tutteli/kbox/mapVararg.kt), [varargToList (glue)](https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/generated/kotlin/ch/tutteli/kbox/varargToList.kt)
2928

3029
and more, see the [Documentation](https://robstoll.github.io/kbox/kdoc/) for a full list.
3130

@@ -36,7 +35,7 @@ KBox is published to maven central.
3635
```
3736
repositories { mavenCentral() }
3837
dependencies {
39-
implementation("ch.tutteli.kbox:kbox:3.2.0")
38+
implementation("ch.tutteli.kbox:kbox:3.3.0")
4039
}
4140
```
4241

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import java.nio.file.StandardCopyOption
55
buildscript {
66
// needs to be defined in here because otherwise tutteli-publish plugin does not have this information when applied
77
// and we use/apply it in the conventions
8-
rootProject.version = "3.3.0-SNAPSHOT"
8+
rootProject.version = "3.3.0"
99
rootProject.group = "ch.tutteli.kbox"
1010
rootProject.description = "A utility library for Kotlin"
1111
extra.set("generationFolder", project.files("src/commonMain/generated/kotlin"))

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Download](https://img.shields.io/badge/Download-3.2.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.2.0)
1+
[![Download](https://img.shields.io/badge/Download-3.3.0-%23007ec6)](https://central.sonatype.com/artifact/ch.tutteli.kbox/kbox/3.3.0)
22
[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)
33

44
# KBox
@@ -11,7 +11,7 @@ KBox is published to maven central.
1111
```
1212
repositories { mavenCentral() }
1313
dependencies {
14-
implementation("ch.tutteli.kbox:kbox:3.2.0")
14+
implementation("ch.tutteli.kbox:kbox:3.3.0")
1515
}
1616
```
1717

docs/kdoc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</a>
4646
</div>
4747
<div class="library-version">
48-
3.2.0 </div>
48+
3.3.0 </div>
4949
</div>
5050
<div class="filter-section" id="filter-section">
5151
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":dokkaHtml/commonMain">common</button>

docs/kdoc/kbox/ch.tutteli.kbox/-jvm-synchronized/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</a>
4646
</div>
4747
<div class="library-version">
48-
3.2.0 </div>
48+
3.3.0 </div>
4949
</div>
5050
<div class="filter-section" id="filter-section">
5151
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":dokkaHtml/commonMain">common</button>
@@ -69,7 +69,7 @@
6969
<h1 class="cover"><span>Jvm</span><wbr></wbr><span><span>Synchronized</span></span></h1>
7070
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
7171
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark" data-filterable-current=":dokkaHtml/commonMain" data-filterable-set=":dokkaHtml/commonMain" data-active="" data-toggle=":dokkaHtml/commonMain">common</button><button class="platform-bookmark" data-filterable-current=":dokkaHtml/jsMain" data-filterable-set=":dokkaHtml/jsMain" data-toggle=":dokkaHtml/jsMain">js</button><button class="platform-bookmark" data-filterable-current=":dokkaHtml/jvmMain" data-filterable-set=":dokkaHtml/jvmMain" data-toggle=":dokkaHtml/jvmMain">jvm</button></div>
72-
<div class="content sourceset-dependent-content" data-active="" data-togglable=":dokkaHtml/commonMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-target/index.html"><span class="token annotation builtin">Target</span></a><span class="token punctuation">(</span><span>allowedTargets<span class="token operator"> = </span><span class="token punctuation">[</span><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html">AnnotationTarget.FUNCTION</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_GETTER</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_SETTER</a></span><wbr></wbr><span class="token punctuation">]</span></span><wbr></wbr><span class="token punctuation">)</span></div></div><span class="token keyword">expect </span><span class="token keyword">annotation class </span><a href="index.html">JvmSynchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.2.0/src/commonMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L8">source</a>)</span></span></div><p class="paragraph">Stands for <code class="lang-kotlin">kotlin.jvm.Synchronized</code> on the JVM platform and a dummy annotation on the other platforms.</p></div><div class="content sourceset-dependent-content" data-togglable=":dokkaHtml/jsMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-target/index.html"><span class="token annotation builtin">Target</span></a><span class="token punctuation">(</span><span>allowedTargets<span class="token operator"> = </span><span class="token punctuation">[</span><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html">AnnotationTarget.FUNCTION</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_GETTER</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_SETTER</a></span><wbr></wbr><span class="token punctuation">]</span></span><wbr></wbr><span class="token punctuation">)</span></div></div><span class="token keyword">actual </span><span class="token keyword">annotation class </span><a href="index.html">JvmSynchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.2.0/src/jsMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L8">source</a>)</span></span></div><p class="paragraph">Without any effects on the JS Platform.</p></div><div class="content sourceset-dependent-content" data-togglable=":dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">typealias </span><a href="index.html">JvmSynchronized</a><span class="token operator"> = </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.jvm/-synchronized/index.html">Synchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.2.0/src/jvmMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L6">source</a>)</span></span></div><p class="paragraph">Typealias for <code class="lang-kotlin">kotlin.jvm.Synchronized</code>.</p></div> </div>
72+
<div class="content sourceset-dependent-content" data-active="" data-togglable=":dokkaHtml/commonMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-target/index.html"><span class="token annotation builtin">Target</span></a><span class="token punctuation">(</span><span>allowedTargets<span class="token operator"> = </span><span class="token punctuation">[</span><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html">AnnotationTarget.FUNCTION</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_GETTER</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_SETTER</a></span><wbr></wbr><span class="token punctuation">]</span></span><wbr></wbr><span class="token punctuation">)</span></div></div><span class="token keyword">expect </span><span class="token keyword">annotation class </span><a href="index.html">JvmSynchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L8">source</a>)</span></span></div><p class="paragraph">Stands for <code class="lang-kotlin">kotlin.jvm.Synchronized</code> on the JVM platform and a dummy annotation on the other platforms.</p></div><div class="content sourceset-dependent-content" data-togglable=":dokkaHtml/jsMain"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-target/index.html"><span class="token annotation builtin">Target</span></a><span class="token punctuation">(</span><span>allowedTargets<span class="token operator"> = </span><span class="token punctuation">[</span><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-f-u-n-c-t-i-o-n/index.html">AnnotationTarget.FUNCTION</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-g-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_GETTER</a><span class="token punctuation">, </span></span><wbr></wbr><span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.annotation/-annotation-target/-p-r-o-p-e-r-t-y_-s-e-t-t-e-r/index.html">AnnotationTarget.PROPERTY_SETTER</a></span><wbr></wbr><span class="token punctuation">]</span></span><wbr></wbr><span class="token punctuation">)</span></div></div><span class="token keyword">actual </span><span class="token keyword">annotation class </span><a href="index.html">JvmSynchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.3.0/src/jsMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L8">source</a>)</span></span></div><p class="paragraph">Without any effects on the JS Platform.</p></div><div class="content sourceset-dependent-content" data-togglable=":dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">typealias </span><a href="index.html">JvmSynchronized</a><span class="token operator"> = </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.jvm/-synchronized/index.html">Synchronized</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.3.0/src/jvmMain/kotlin/ch/tutteli/kbox/JvmSynchronized.kt#L6">source</a>)</span></span></div><p class="paragraph">Typealias for <code class="lang-kotlin">kotlin.jvm.Synchronized</code>.</p></div> </div>
7373
</div>
7474
<div class="tabbedcontent">
7575
<div class="tabs-section" tabs-section="tabs-section"></div>

docs/kdoc/kbox/ch.tutteli.kbox/-peeking-iterator/-companion/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</a>
4646
</div>
4747
<div class="library-version">
48-
3.2.0 </div>
48+
3.3.0 </div>
4949
</div>
5050
<div class="filter-section" id="filter-section">
5151
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":dokkaHtml/commonMain">common</button>
@@ -65,7 +65,7 @@
6565
<div class="breadcrumbs"><a href="../../../../index.html">kbox</a><span class="delimiter">/</span><a href="../../index.html">ch.tutteli.kbox</a><span class="delimiter">/</span><a href="../index.html">PeekingIterator</a><span class="delimiter">/</span><span class="current">Companion</span></div>
6666
<div class="cover ">
6767
<h1 class="cover"><span><span>Companion</span></span></h1>
68-
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="index.html">Companion</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.2.0/src/commonMain/kotlin/ch/tutteli/kbox/PeekingIterator.kt#L16">source</a>)</span></span></div><p class="paragraph">Necessary so that extension methods can extend it.</p></div></div>
68+
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="index.html">Companion</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/robstoll/kbox/tree/v3.3.0/src/commonMain/kotlin/ch/tutteli/kbox/PeekingIterator.kt#L16">source</a>)</span></span></div><p class="paragraph">Necessary so that extension methods can extend it.</p></div></div>
6969
</div>
7070
<div class="tabbedcontent">
7171
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div>

0 commit comments

Comments
 (0)