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

Method longSize

corpus/java/training/guava/cache/LocalCache.java:4007–4014  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4005 }
4006
4007 long longSize() {
4008 Segment<K, V>[] segments = this.segments;
4009 long sum = 0;
4010 for (int i = 0; i < segments.length; ++i) {
4011 sum += Math.max(0, segments[i].count); // see https://github.com/google/guava/issues/2108
4012 }
4013 return sum;
4014 }
4015
4016 @Override
4017 public int size() {

Callers 2

sizeMethod · 0.95
sizeMethod · 0.45

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected