(Object key)
| 165 | } |
| 166 | |
| 167 | public IPersistentMap without(Object key){ |
| 168 | if(key == null) |
| 169 | return hasNull ? new PersistentHashMap(meta(), count - 1, root, false, null) : this; |
| 170 | if(root == null) |
| 171 | return this; |
| 172 | INode newroot = root.without(0, hash(key), key); |
| 173 | if(newroot == root) |
| 174 | return this; |
| 175 | return new PersistentHashMap(meta(), count - 1, newroot, hasNull, nullValue); |
| 176 | } |
| 177 | |
| 178 | static final Iterator EMPTY_ITER = new Iterator(){ |
| 179 | public boolean hasNext(){ |