public class CompositeSimilar<T extends Similar<T>> extends Object implements Similar<T>
Constructor and Description |
---|
CompositeSimilar(Iterable<T> similars) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSimilarity(T key)
x = 0 ⇔ equal
x < 0 ⇔ not similar
x > 0 ⇔ similar
y > 0 & x > y ⇔ x more similar than y
|
protected Set<T> |
getSimilars() |
int |
hashCode() |
boolean |
matches(Set<T> toTest) |
String |
toString() |
Copyright © 2012-2015 52north.org. All Rights Reserved.