mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
Better toString() and logging
This commit is contained in:
parent
159add90c5
commit
23872ff894
@ -1,5 +1,7 @@
|
|||||||
package net.filebot.similarity;
|
package net.filebot.similarity;
|
||||||
|
|
||||||
|
import static java.util.Arrays.*;
|
||||||
|
|
||||||
public class MetricAvg implements SimilarityMetric {
|
public class MetricAvg implements SimilarityMetric {
|
||||||
|
|
||||||
private final SimilarityMetric[] metrics;
|
private final SimilarityMetric[] metrics;
|
||||||
@ -21,4 +23,9 @@ public class MetricAvg implements SimilarityMetric {
|
|||||||
return f / metrics.length;
|
return f / metrics.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return getClass().getSimpleName() + ' ' + asList(metrics);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package net.filebot.similarity;
|
package net.filebot.similarity;
|
||||||
|
|
||||||
|
import static java.util.Arrays.*;
|
||||||
|
|
||||||
public class MetricCascade implements SimilarityMetric {
|
public class MetricCascade implements SimilarityMetric {
|
||||||
|
|
||||||
private final SimilarityMetric[] cascade;
|
private final SimilarityMetric[] cascade;
|
||||||
@ -26,4 +28,9 @@ public class MetricCascade implements SimilarityMetric {
|
|||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return getClass().getSimpleName() + ' ' + asList(cascade);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user