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

s_mach.datadiff.CollectionDataDiffImplicits.scala Maven / Gradle / Ivy

/*
                    ,i::,
               :;;;;;;;
              ;:,,::;.
            1ft1;::;1tL
              t1;::;1,
               :;::;               _____       __  ___              __
          fCLff ;:: tfLLC         / ___/      /  |/  /____ _ _____ / /_
         CLft11 :,, i1tffLi       \__ \ ____ / /|_/ // __ `// ___// __ \
         1t1i   .;;   .1tf       ___/ //___// /  / // /_/ // /__ / / / /
       CLt1i    :,:    .1tfL.   /____/     /_/  /_/ \__,_/ \___//_/ /_/
       Lft1,:;:       , 1tfL:
       ;it1i ,,,:::;;;::1tti      s_mach.datadiff
         .t1i .,::;;; ;1tt        Copyright (c) 2014 S-Mach, Inc.
         Lft11ii;::;ii1tfL:       Author: [email protected]
          .L1 1tt1ttt,,Li
            ...1LLLL...
*/
package s_mach.datadiff

import scala.language.higherKinds
import scala.collection.generic.CanBuildFrom
import s_mach.datadiff.impl._

trait CollectionDataDiffImplicits {
  implicit def mkDataDiff_Option[A,Patch](implicit
    aDiff:DataDiff[A,Patch]
  ) = new OptionDataDiffImpl[A,Patch]
  implicit def mkDataDiff_Set[A] = new SetDataDiffImpl[A]
  implicit def mkDataDiff_Seq[A,M[AA] <: Seq[AA]](implicit
    cbf: CanBuildFrom[Nothing, A, M[A]]
  ) = new SeqDataDiffImpl[A,M]
  implicit def mkDataDiff_Map[A,B,Patch](implicit
    bDiff:DataDiff[B,Patch]
  ) = new MapDataDiffImpl[A,B,Patch]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy