in src/main/scala/com/amazon/deequ/metrics/KLLMetric.scala [72:90]
override def equals(obj: Any): Boolean = {
obj match {
case that: BucketDistribution =>
var check = that.isInstanceOf[BucketDistribution] &&
this.buckets.equals(that.buckets) &&
this.parameters.equals(that.parameters) &&
this.data.length == that.data.length
breakable {
for (i <- this.data.indices) {
if (!this.data(i).sameElements(that.data(i))) {
check = false
break
}
}
}
check
case _ => false
}
}