-
- All Superinterfaces:
Task<ComparatorType>
- All Known Implementing Classes:
AbstractComparator
,CosineComparator
,DiceIndexComparator
,EditDistanceComparator
,IndexComparator
,JaccardIndexComparator
,SimpsonIndexComparator
public interface Comparator extends Task<ComparatorType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> Either<Exception,Comparison<T>>
compare(Birthmark<T> left, Birthmark<T> right)
<T> Comparisons
compare(Birthmarks<T> left, Birthmarks<T> right, PairMatcher<Birthmark<T>> maker)
<T> Comparisons
compare(Birthmarks<T> results, PairMatcher<Birthmark<T>> maker)
default <T> Either<Exception,Comparison<T>>
compare(Pair<Birthmark<T>> pair)
<T> Either<Exception,Similarity>
similarity(Pair<Birthmark<T>> pair)
ComparatorType
type()
-
Methods inherited from interface jp.cafebabe.birthmarks.Task
configuration, stripEither, stripOptional
-
-
-
-
Method Detail
-
type
ComparatorType type()
- Specified by:
type
in interfaceTask<ComparatorType>
-
compare
<T> Comparisons compare(Birthmarks<T> results, PairMatcher<Birthmark<T>> maker)
-
compare
<T> Comparisons compare(Birthmarks<T> left, Birthmarks<T> right, PairMatcher<Birthmark<T>> maker)
-
similarity
<T> Either<Exception,Similarity> similarity(Pair<Birthmark<T>> pair)
-
compare
default <T> Either<Exception,Comparison<T>> compare(Pair<Birthmark<T>> pair)
-
compare
default <T> Either<Exception,Comparison<T>> compare(Birthmark<T> left, Birthmark<T> right)
-
-