Interface Abbreviations

All Superinterfaces:
Dictionary, Iterable<String>

public interface Abbreviations extends Dictionary
A dictionary interface for abbreviations.
  • Method Details

    • getFull

      Optional<String> getFull(String abbr)
      Returns the full word of an abbreviation, or empty if not found.
      Parameters:
      abbr - the abbreviation.
      Returns:
      the full word of abbreviation, or empty if not found.
    • getAbbreviation

      Optional<String> getAbbreviation(String word)
      Returns the abbreviation for a word, or empty if not found.
      Parameters:
      word - the query word.
      Returns:
      the abbreviation, or empty if not found.