MCPcopy Create free account
hub / github.com/antlr/codebuff / size

Method size

output/java_guava/1.4.18/MapMakerInternalMap.java:1640–1648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1638 }
1639
1640 @Override
1641 public int size() {
1642 Segment<K, V>[] segments = this.segments;
1643 long sum = 0;
1644 for (int i = 0; i < segments.length; ++i) {
1645 sum += segments[i].count;
1646 }
1647 return Ints.saturatedCast(sum);
1648 }
1649
1650 @Override
1651 public V get(@Nullable Object key) {

Callers

nothing calls this directly

Calls 1

saturatedCastMethod · 0.95

Tested by

no test coverage detected