What are the differences between ArrayList and ArrayMap?

Technology CommunityCategory: AndroidWhat are the differences between ArrayList and ArrayMap?
VietMX Staff asked 3 years ago

ArrayMap keeps its mappings in an array data structure — an integer array of hash codes for each item, and an Object array of the key -> value pairs.

Where ArrayList is a List. Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null.