()
| 24 | } |
| 25 | |
| 26 | private void initializeSet() { |
| 27 | final Comparator<K> comparator = this.comparator != null ? |
| 28 | this.comparator : new Comparator<K>() { |
| 29 | public int compare(K a, K b) { |
| 30 | return ((Comparable) a).compareTo(b); |
| 31 | } |
| 32 | }; |
| 33 | set = new TreeSet(new Comparator<MyEntry<K,V>>() { |
| 34 | public int compare(MyEntry<K,V> a, MyEntry<K,V> b) { |
| 35 | return comparator.compare(a.key, b.key); |
| 36 | } |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | public TreeMap() { |
| 41 | this(null); |
no outgoing calls
no test coverage detected