public class CompositeSimilar<T extends Similar<T>> extends java.lang.Object implements Similar<T>
| Constructor and Description |
|---|
CompositeSimilar(java.lang.Iterable<T> similars) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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 java.util.Set<T> |
getSimilars() |
int |
hashCode() |
boolean |
matches(java.util.Set<T> toTest) |
java.lang.String |
toString() |
public CompositeSimilar(java.lang.Iterable<T> similars)
protected java.util.Set<T> getSimilars()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean matches(java.util.Set<T> toTest)
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–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.