MCPcopy Index your code
hub / github.com/clojure/clojure / iterator

Method iterator

src/jvm/clojure/lang/APersistentMap.java:184–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 }
183
184 public Iterator iterator(){
185 if(iterable == null)
186 return super.iterator();
187
188 if(iterable instanceof IMapIterable)
189 return ((IMapIterable)iterable).keyIterator();
190
191 final Iterator mapIter = iterable.iterator();
192 return new Iterator() {
193 public boolean hasNext() {
194 return mapIter.hasNext();
195 }
196
197 public Object next() {
198 return ((Map.Entry)mapIter.next()).getKey();
199 }
200
201 public void remove() {
202 throw new UnsupportedOperationException();
203 }
204 };
205 }
206}
207
208static public class ValSeq extends ASeq{

Callers

nothing calls this directly

Calls 2

iteratorMethod · 0.65
keyIteratorMethod · 0.65

Tested by

no test coverage detected