MCPcopy Index your code
hub / github.com/jankotek/mapdb / size

Method size

src/main/java/org/mapdb/BTreeMapJava.java:1143–1155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1141 }
1142
1143 @Override
1144 public int size() {
1145 if(hi==null && lo==null)
1146 return m.size();
1147
1148 Iterator<K> i = m.keyIterator(lo, loInclusive, hi, hiInclusive);
1149 long counter = 0;
1150 while(i.hasNext()){
1151 counter++;
1152 i.next();
1153 }
1154 return (int) Math.min(counter, Integer.MAX_VALUE);
1155 }
1156
1157 @Override
1158 public boolean isEmpty() {

Callers

nothing calls this directly

Calls 4

nextMethod · 0.80
sizeMethod · 0.45
keyIteratorMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected