All Downloads are FREE. Search and download functionalities are using the official Maven repository.

t.xtract_2.13.2.3.0.source-code.CollectionFactory.scala Maven / Gradle / Ivy

The newest version!
package com.lucidchart.open.xtract

import scala.collection.Factory
import scala.collection.mutable.Builder


/**
 * Shim for compatibility between scala 2.11/2.12 and 2.13
 */
class CollectionFactory[-A, +C](private val f: Factory[A,C]) extends AnyVal {
  def newBuilder: Builder[A, C] = f.newBuilder
}

object CollectionFactory {
  implicit def factory[A, C](implicit f: Factory[A, C]): CollectionFactory[A, C] = new CollectionFactory(f)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy