Package org.n52.janmayen.similar
Interface Similar<T>
- All Known Implementing Classes:
AbstractSimilarityKeyComponentRepository.CompositeKey,CompositeSimilar,MediaType
public interface Similar<T>
TODO JavaDoc
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionintgetSimilarity(T other) x = 0 ⇔ equal x < 0 ⇔ not similar x > 0 ⇔ similar y > 0 & x > y ⇔ x more similar than y
-
Method Details
-
getSimilarity
x = 0 ⇔ equal x < 0 ⇔ not similar x > 0 ⇔ similar y > 0 & x > y ⇔ x more similar than y
- Parameters:
other- the other object- Returns:
- the similarity value
-