Class IntersectionSimilarity<T>

    • Constructor Detail

      • IntersectionSimilarity

        public IntersectionSimilarity​(Function<CharSequence,​Collection<T>> converter)
        Create a new intersection similarity using the provided converter.

        If the converter returns a Set then the intersection result will not include duplicates. Any other Collection is used to produce a result that will include duplicates in the intersect and union.

        Parameters:
        converter - the converter used to create the elements from the characters
        Throws:
        IllegalArgumentException - if the converter is null