diff --git a/source/net/filebot/similarity/MetricAvg.java b/source/net/filebot/similarity/MetricAvg.java index c02a3853..bf60570c 100644 --- a/source/net/filebot/similarity/MetricAvg.java +++ b/source/net/filebot/similarity/MetricAvg.java @@ -1,5 +1,7 @@ package net.filebot.similarity; +import static java.util.Arrays.*; + public class MetricAvg implements SimilarityMetric { private final SimilarityMetric[] metrics; @@ -21,4 +23,9 @@ public class MetricAvg implements SimilarityMetric { return f / metrics.length; } + @Override + public String toString() { + return getClass().getSimpleName() + ' ' + asList(metrics); + } + } diff --git a/source/net/filebot/similarity/MetricCascade.java b/source/net/filebot/similarity/MetricCascade.java index 646160e7..11a71a80 100644 --- a/source/net/filebot/similarity/MetricCascade.java +++ b/source/net/filebot/similarity/MetricCascade.java @@ -1,5 +1,7 @@ package net.filebot.similarity; +import static java.util.Arrays.*; + public class MetricCascade implements SimilarityMetric { private final SimilarityMetric[] cascade; @@ -26,4 +28,9 @@ public class MetricCascade implements SimilarityMetric { return f; } + @Override + public String toString() { + return getClass().getSimpleName() + ' ' + asList(cascade); + } + }