Interface Dictionary

All Known Implementing Classes:
BloomFilterDictionary, JDBCDictionary, TernaryTreeDictionary, WordListDictionary

public interface Dictionary
Base interface for all dictionaries.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the supplied word exists in the dictionary.
    long
    Returns the number of words in this dictionary
  • Method Details

    • search

      boolean search(CharSequence word)
      Returns whether the supplied word exists in the dictionary.
      Parameters:
      word - to search for
      Returns:
      whether word was found
    • size

      long size()
      Returns the number of words in this dictionary
      Returns:
      total number of words to search