Class IntersectionSimilarity<T>

java.lang.Object
org.apache.commons.text.similarity.IntersectionSimilarity<T>
Type Parameters:
T - the type of the elements extracted from the character sequence
All Implemented Interfaces:
BiFunction<CharSequence,CharSequence,IntersectionResult>, ObjectSimilarityScore<CharSequence,IntersectionResult>, SimilarityScore<IntersectionResult>

Measures the intersection of two sets created from a pair of character sequences.

It is assumed that the type T correctly conforms to the requirements for storage within a Set or HashMap. Ideally the type is immutable and implements Object.equals(Object) and Object.hashCode().

Since:
1.7
See Also: