I was reading java source code of TreeMap, for the put method, when the map is empty, it still calling compare key with itself, what is the purpose of that? '''
public V put(K key, V value) {
TreeMap.Entry<K, V> t = this.root;
if (t == null) {
this.compare(key, key);
this.root = new TreeMap.Entry(key, value, (TreeMap.Entry)null);
this.size = 1;
++this.modCount;
return null;
}
'''