Class RBTreeSortedMap<K,V>

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

@InternalApi public class RBTreeSortedMap<K,V> extends ImmutableSortedMap<K,V>
This is a red-black tree backed implementation of ImmutableSortedMap. This has better asymptotic complexity for large collections, but performs worse in practice than an ArraySortedMap for small collections. It also uses about twice as much memory.

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