Class SampleComparator

  • All Implemented Interfaces:
    Comparator<org.apache.lucene.search.spell.SuggestWord>

    public class SampleComparator
    extends Object
    implements Comparator<org.apache.lucene.search.spell.SuggestWord>
    Comparator for testing purposes
    • Constructor Detail

      • SampleComparator

        public SampleComparator()
    • Method Detail

      • compare

        public int compare​(org.apache.lucene.search.spell.SuggestWord suggestWord,
                           org.apache.lucene.search.spell.SuggestWord suggestWord1)
        Specified by:
        compare in interface Comparator<org.apache.lucene.search.spell.SuggestWord>