comparison src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/data/treemap/TreeMap.cs @ 7:02b2ab7bffe6

fix
author Kazuma
date Tue, 27 Sep 2016 18:36:05 +0900
parents 79da77797f7e
children
comparison
equal deleted inserted replaced
5:0428c8888abf 7:02b2ab7bffe6
48 public bool isEmpty() { 48 public bool isEmpty() {
49 return !root.isNotEmpty (); 49 return !root.isNotEmpty ();
50 } 50 }
51 51
52 public TreeMap<K, V> delete(K key) { 52 public TreeMap<K, V> delete(K key) {
53 if (key == null) { 53 if (key.Equals(default(K))) {
54 return this; 54 return this;
55 } 55 }
56 rebuildNode<K, V> rootRebuildNode = root.delete (key, null, this.comparator, Rotate.N); 56 rebuildNode<K, V> rootRebuildNode = root.delete (key, null, this.comparator, Rotate.N);
57 if (!rootRebuildNode.notEmpty ()) { 57 if (!rootRebuildNode.notEmpty ()) {
58 return this; 58 return this;