t.xtract_2.13.2.3.0.source-code.CollectionFactory.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtract_2.13 Show documentation
Show all versions of xtract_2.13 Show documentation
Library to deserialize Xml to user types.
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