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 Type
    Method
    Description
    int
    x = 0 ⇔ equal x < 0 ⇔ not similar x > 0 ⇔ similar y > 0 & x > y ⇔ x more similar than y
  • Method Details

    • getSimilarity

      int getSimilarity(T other)
       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