()
| 174 | } |
| 175 | |
| 176 | public Iterator iterator(){ |
| 177 | if(impl instanceof IMapIterable) |
| 178 | return ((IMapIterable)impl).keyIterator(); |
| 179 | else return new Iterator() { |
| 180 | private final Iterator iter = impl.iterator(); |
| 181 | |
| 182 | public boolean hasNext() { |
| 183 | return iter.hasNext(); |
| 184 | } |
| 185 | |
| 186 | public Object next() { |
| 187 | return ((IMapEntry)iter.next()).key(); |
| 188 | } |
| 189 | |
| 190 | public void remove() { |
| 191 | throw new UnsupportedOperationException(); |
| 192 | } |
| 193 | }; |
| 194 | } |
| 195 | |
| 196 | } |
nothing calls this directly
no test coverage detected