Returns the first Entry in the RBTreeMap (according to the RBTreeMap's key-sort function). Returns null if the RBTreeMap is empty.
()
| 1167 | * key-sort function). Returns null if the RBTreeMap is empty. |
| 1168 | */ |
| 1169 | private Entry<K,V> firstEntry() { |
| 1170 | Entry<K,V> p = root; |
| 1171 | if (p != null) |
| 1172 | while (p.left != null) |
| 1173 | p = p.left; |
| 1174 | return p; |
| 1175 | } |
| 1176 | |
| 1177 | /** |
| 1178 | * Returns the last Entry in the RBTreeMap (according to the RBTreeMap's |