com.infobip.kafkistry.kafka.scalaConversions.kt Maven / Gradle / Ivy
package com.infobip.kafkistry.kafka
import scala.jdk.CollectionConverters
fun scala.collection.Iterable.toJavaList(): List =
CollectionConverters.IterableHasAsJava(this).asJava().toList()
fun Iterable.toScalaList(): scala.collection.immutable.List =
CollectionConverters.IterableHasAsScala(this).asScala().toList()
fun Map.toScalaMap(): scala.collection.Map =
CollectionConverters.MapHasAsScala(this).asScala()
fun scala.collection.Map.toJavaMap(): Map =
CollectionConverters.MapHasAsJava(this).asJava()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy