Interface Similator<T>

  • All Known Subinterfaces:
    PersistenceMemberSimilator
    All Known Implementing Classes:
    PersistenceMemberSimilator.Default, Similator.Sequence, SimilatorSequence
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Similator<T>
    Function type that is used to determine the similarity of objects with compatible types.

    This is similar (pun) to Comparator or Equalator, but aims at more fine grained comparison, e.g. for integrating String similarity heuristics like if(similarName.evaluate("Jack", "Jake") > 0.5) {...}}}.

    To not confound the admitted strange name "Similator" with "Simulator" or "Assimilator" (the building where the Protoss get their gas from :D)

    • Method Summary

      Modifier and Type Method Description
      double evaluate​(T o1, T o2)  
    • Method Detail

      • evaluate

        double evaluate​(T o1,
                        T o2)