A dictionary typically implements the methods:

  • get(k): if the dictionary has an entry with key , return it otherwise null
  • getAll(k): returns an iterable collection of all entries with key
  • put(k,v): inserts into the dictionary and returns entry
  • remove(e): removes the entry from the dictionary and returns the removed entry; an error occurs if entry is not in the dictionary
  • entrySet(): returns an iterable collection of the entries in the dictionary
  • Additional methods: size(), isEmpty().