BAEL-382 formatting
This commit is contained in:
parent
77fba546b3
commit
b167fc5315
@ -1,4 +1,3 @@
|
|||||||
package com.baeldung
|
package com.baeldung
|
||||||
|
|
||||||
|
|
||||||
data class Item(val id: String, val name: String = "unknown_name")
|
data class Item(val id: String, val name: String = "unknown_name")
|
@ -2,7 +2,6 @@ package com.baeldung
|
|||||||
|
|
||||||
import java.util.concurrent.ThreadLocalRandom
|
import java.util.concurrent.ThreadLocalRandom
|
||||||
|
|
||||||
|
|
||||||
class ListExtension {
|
class ListExtension {
|
||||||
fun <T> List<T>.random(): T? {
|
fun <T> List<T>.random(): T? {
|
||||||
if (this.isEmpty()) return null
|
if (this.isEmpty()) return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user