Map versus Dictionary

[In Java,] What is the difference of Dictionary and Map?
In a Result object I can either call toMap() or getDictionary(x). Why/when would I want one over the other?

Basically it depends on how you prioritize platform integration vs. cross-platform consistency.

The Map class is (obviously) Java-specific, but familiar to Java devs and well integrated with Java software.

The Dictionary class has the same API and behavior across all platforms that Couchbase Lite supports (which simplifies cross-platform development.)