Class ArraySortedMap<K,V>

java.lang.Object
com.google.cloud.firestore.collection.ImmutableSortedMap<K,V>
com.google.cloud.firestore.collection.ArraySortedMap<K,V>
All Implemented Interfaces:
Iterable<Map.Entry<K,V>>

@InternalApi public class ArraySortedMap<K,V> extends ImmutableSortedMap<K,V>
This is an array backed implementation of ImmutableSortedMap. It uses arrays and linear lookups to achieve good memory efficiency while maintaining good performance for small collections. To avoid degrading performance with increasing collection size it will automatically convert to a RBTreeSortedMap after an insert call above a certain threshold.

Note: This package is copied from https://github.com/firebase/firebase-admin-java/tree/master/ src/main/java/com/google/firebase/database/collection