nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673645e
)
metrics: make Metric interface accept any kind of collection
author
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 15 Oct 2015 21:42:15 +0000
(17:42 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 15 Oct 2015 21:42:15 +0000
(17:42 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/metrics/metrics_base.nit
patch
|
blob
|
history
diff --git
a/src/metrics/metrics_base.nit
b/src/metrics/metrics_base.nit
index
ebd05ae
..
342d5c7
100644
(file)
--- a/
src/metrics/metrics_base.nit
+++ b/
src/metrics/metrics_base.nit
@@
-166,7
+166,7
@@
interface Metric
fun values: RES is abstract
# Collect metric values on elements
- fun collect(elements: Set[ELM]) is abstract
+ fun collect(elements: Collection[ELM]) is abstract
# The value calculated for the element
fun [](element: ELM): VAL do return values[element]