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