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() |
public int getSimilarity(T key)
Similarx = 0 ⇔ equal x < 0 ⇔ not similar x > 0 ⇔ similar y > 0 & x > y ⇔ x more similar than y
getSimilarity in interface Similar<T extends Similar<T>>key - the other objectCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.