scalapb.internal.compat.scala Maven / Gradle / Ivy
The newest version!
package scalapb.internal
import scala.collection.generic.CanBuildFrom
object compat {
def convertTo[A, To](from: TraversableOnce[A])(implicit cbf: CanBuildFrom[Nothing, A, To]): To = {
val builder = cbf()
builder ++= from
builder.result()
}
val JavaConverters = scala.collection.JavaConverters
}