Skip to content

Commit

Permalink
Merge pull request #78 from azymnis/argyris/metric_serializable
Browse files Browse the repository at this point in the history
Make Metric serializable.
  • Loading branch information
sritchie committed Dec 17, 2012
2 parents 119165d + 5f9ddd2 commit 02ae0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/twitter/algebird/Metric.scala
Expand Up @@ -99,6 +99,6 @@ object Metric {
implicit def iterableMetric[V : Monoid : Metric] = L2Iterable[V]
implicit def mapMetric[K, V : Monoid : Metric] = L2Map[K, V]
}
trait Metric[@specialized(Int,Long,Float,Double) -V] extends Function2[V, V, Double] {
trait Metric[@specialized(Int,Long,Float,Double) -V] extends Function2[V, V, Double] with java.io.Serializable {
def apply(v1: V, v2: V): Double
}

0 comments on commit 02ae0ff

Please sign in to comment.