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

Method values

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

Source from the content-addressed store, hash-verified

396}
397
398public Collection values(){
399 return new AbstractCollection(){
400
401 public Iterator iterator(){
402 final Iterator mi = APersistentMap.this.iterator();
403
404 return new Iterator(){
405
406
407 public boolean hasNext(){
408 return mi.hasNext();
409 }
410
411 public Object next(){
412 Entry e = (Entry) mi.next();
413 return e.getValue();
414 }
415
416 public void remove(){
417 throw new UnsupportedOperationException();
418 }
419 };
420 }
421
422 public int size(){
423 return count();
424 }
425 };
426}
427
428/*
429// java.util.Collection implementation

Callers 5

containsValueMethod · 0.95
parseMethod · 0.80
CaseExprMethod · 0.80
doEmitMethod · 0.80
allMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected