O - typepublic interface SimilarityMeasure<O>
| Modifier and Type | Method and Description |
|---|---|
double |
compare(O anObject,
O anotherObject)
Compares the two input objects.
|
boolean |
isSymmetric() |
boolean isSymmetric()
true if compare(A,B) == compare (B,A)double compare(O anObject, O anotherObject)
equals method available
for O. If isSymmetric returns true, then it must
hold that compare(A,B) == compare (B,A).anObject - the first object to compare. cannot be null.anotherObject - the first object to compare. cannot be null.NullPointerException - if either input is null.Copyright © 2015 The University of Manchester. All Rights Reserved.