- java.lang.Object
-
- jp.cafebabe.birthmarks.comparators.Comparison<T>
-
- All Implemented Interfaces:
Serializable
,Comparable<Comparison>
public class Comparison<T> extends Object implements Serializable, Comparable<Comparison>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Comparison(Birthmark<T> left, Birthmark<T> right, Similarity similarity)
Comparison(Pair<Birthmark<T>> pair, Similarity similarity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Comparison other)
boolean
isInconclusive(Threshold threshold)
boolean
isInnocent(Threshold threshold)
boolean
isStolen(Threshold threshold)
Birthmark<T>
left()
Birthmark<T>
right()
Similarity
similarity()
String
toString()
-
-
-
Constructor Detail
-
Comparison
public Comparison(Birthmark<T> left, Birthmark<T> right, Similarity similarity)
-
Comparison
public Comparison(Pair<Birthmark<T>> pair, Similarity similarity)
-
-
Method Detail
-
similarity
public Similarity similarity()
-
isInnocent
public boolean isInnocent(Threshold threshold)
-
isStolen
public boolean isStolen(Threshold threshold)
-
isInconclusive
public boolean isInconclusive(Threshold threshold)
-
compareTo
public int compareTo(Comparison other)
- Specified by:
compareTo
in interfaceComparable<T>
-
-