forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BAEL-19885] - Move articles out of core-kotlin part4
- Loading branch information
1 parent
b38e420
commit 5e9a17c
Showing
44 changed files
with
194 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Core Kotlin Advanced | ||
|
||
This module contains articles about advanced topics in Kotlin. | ||
|
||
### Relevant articles: | ||
- [Building DSLs in Kotlin](https://www.baeldung.com/kotlin-dsl) | ||
- [Regular Expressions in Kotlin](https://www.baeldung.com/kotlin-regular-expressions) | ||
- [Idiomatic Logging in Kotlin](https://www.baeldung.com/kotlin-logging) | ||
- [Mapping of Data Objects in Kotlin](https://www.baeldung.com/kotlin-data-objects) | ||
- [Reflection with Kotlin](https://www.baeldung.com/kotlin-reflection) | ||
- [Kotlin Contracts](https://www.baeldung.com/kotlin-contracts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>core-kotlin-advanced</artifactId> | ||
<name>core-kotlin-advanced</name> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>com.baeldung.core-kotlin-modules</groupId> | ||
<artifactId>core-kotlin-modules</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-stdlib-jdk8</artifactId> | ||
<version>${kotlin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<version>${assertj.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-test</artifactId> | ||
<version>${kotlin.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<properties> | ||
<kotlin.version>1.3.30</kotlin.version> | ||
<assertj.version>3.10.0</assertj.version> | ||
</properties> | ||
|
||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../kotlin/com/baeldung/kotlin/dsl/SqlDsl.kt → ...rc/main/kotlin/com/baeldung/dsl/SqlDsl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.kotlin.dsl | ||
package com.baeldung.dsl | ||
|
||
abstract class Condition { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../kotlin/logging/LoggerAsExtensionOnAny.kt → ...aeldung/logging/LoggerAsExtensionOnAny.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.kotlin.logging | ||
package com.baeldung.logging | ||
|
||
import org.slf4j.Logger | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ing/LoggerAsExtensionOnMarkerInterface.kt → ...ing/LoggerAsExtensionOnMarkerInterface.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eldung/kotlin/logging/LoggerAsProperty.kt → .../com/baeldung/logging/LoggerAsProperty.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...kotlin/logging/LoggerInCompanionObject.kt → ...eldung/logging/LoggerInCompanionObject.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otlin/com/baeldung/kotlin/logging/Util.kt → .../main/kotlin/com/baeldung/logging/Util.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
...lin/com/baeldung/kotlin/dsl/SqlDslTest.kt → ...est/kotlin/com/baeldung/dsl/SqlDslTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...g/kotlin/reflection/JavaReflectionTest.kt → ...baeldung/reflection/JavaReflectionTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../baeldung/kotlin/reflection/KClassTest.kt → ...lin/com/baeldung/reflection/KClassTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...baeldung/kotlin/reflection/KMethodTest.kt → ...in/com/baeldung/reflection/KMethodTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
...n/com/baeldung/kotlin/stdlib/RegexTest.kt → ...st/kotlin/com/baeldung/regex/RegexTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Core Kotlin Collections | ||
|
||
This module contains articles about core Kotlin collections. | ||
|
||
### Relevant articles: | ||
- [Split a List Into Parts in Kotlin](https://www.baeldung.com/kotlin-split-list-into-parts) | ||
- [Finding an Element in a List Using Kotlin](https://www.baeldung.com/kotlin-finding-element-in-list) | ||
- [Overview of Kotlin Collections API](https://www.baeldung.com/kotlin-collections-api) | ||
- [Converting a List to Map in Kotlin](https://www.baeldung.com/kotlin-list-to-map) | ||
- [Filtering Kotlin Collections](https://www.baeldung.com/kotlin-filter-collection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>core-kotlin-collections</artifactId> | ||
<name>core-kotlin-collections</name> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>com.baeldung.core-kotlin-modules</groupId> | ||
<artifactId>core-kotlin-modules</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-stdlib-jdk8</artifactId> | ||
<version>${kotlin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-math3</artifactId> | ||
<version>${commons-math3.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<version>${assertj.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-test</artifactId> | ||
<version>${kotlin.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<properties> | ||
<kotlin.version>1.3.30</kotlin.version> | ||
<commons-math3.version>3.6.1</commons-math3.version> | ||
<assertj.version>3.10.0</assertj.version> | ||
</properties> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...otlin/com/baeldung/lists/ListsUnitTest.kt → ...ndelement/FindAnElementInAListUnitTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tlin/com/baeldung/kotlin/ListToMapTest.kt → ...n/com/baeldung/listtomap/ListToMapTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.kotlin | ||
package com.baeldung.listtomap | ||
|
||
import org.junit.Test | ||
import kotlin.test.assertTrue | ||
|
3 changes: 3 additions & 0 deletions
3
core-kotlin-modules/core-kotlin-collections/src/test/kotlin/com/baeldung/listtomap/User.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.baeldung.listtomap | ||
|
||
data class User(val name: String, val age: Int, val hobbies: List<String>) |
4 changes: 2 additions & 2 deletions
4
...n/com/baeldung/splitting/SplittingTest.kt → ...ldung/splitlist/SplitListIntoPartsTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Core Kotlin Concurrency | ||
|
||
This module contains articles about concurrency in Kotlin. | ||
|
||
### Relevant articles: | ||
- [Threads vs Coroutines in Kotlin](https://www.baeldung.com/kotlin-threads-coroutines) | ||
- [Introduction to Kotlin Coroutines](https://www.baeldung.com/kotlin-coroutines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>core-kotlin-concurrency</artifactId> | ||
<name>core-kotlin-concurrency</name> | ||
<packaging>jar</packaging> | ||
|
||
<parent> | ||
<groupId>com.baeldung.core-kotlin-modules</groupId> | ||
<artifactId>core-kotlin-modules</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-stdlib-jdk8</artifactId> | ||
<version>${kotlin.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<version>${assertj.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jetbrains.kotlin</groupId> | ||
<artifactId>kotlin-test</artifactId> | ||
<version>${kotlin.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<properties> | ||
<kotlin.version>1.3.30</kotlin.version> | ||
<assertj.version>3.10.0</assertj.version> | ||
</properties> | ||
|
||
</project> |
2 changes: 1 addition & 1 deletion
2
...lin/com/baeldung/thread/SimpleRunnable.kt → ...ung/threadsvscoroutines/SimpleRunnable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.thread | ||
package com.baeldung.threadsvscoroutines | ||
|
||
class SimpleRunnable: Runnable { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...otlin/com/baeldung/thread/SimpleThread.kt → ...ldung/threadsvscoroutines/SimpleThread.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.thread | ||
package com.baeldung.threadsvscoroutines | ||
|
||
class SimpleThread: Thread() { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...com/baeldung/kotlin/CoroutinesUnitTest.kt → ...baeldung/coroutines/CoroutinesUnitTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.kotlin | ||
package com.baeldung.coroutines | ||
|
||
import kotlinx.coroutines.* | ||
import org.junit.Test | ||
|
2 changes: 1 addition & 1 deletion
2
.../com/baeldung/thread/CoroutineUnitTest.kt → .../threadsvscoroutines/CoroutineUnitTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lin/com/baeldung/thread/ThreadUnitTest.kt → ...ung/threadsvscoroutines/ThreadUnitTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.