Package one.microstream.util.similarity
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)
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Similator.Provider<T>
static class
Similator.Sequence<T>
-
Method Summary