MCPcopy Create free account
hub / github.com/e2wugui/zeze / getKeyCounters

Method getKeyCounters

ZezeJava/ZezeJavaTest/src/Infinite/Tasks.java:30–32  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

28 private static final ConcurrentHashMap<String, LongAdder> CounterSuccess = new ConcurrentHashMap<>();
29
30 static LongConcurrentHashMap<LongAdder> getKeyCounters(String name) {
31 return CounterKey.computeIfAbsent(name, __ -> new LongConcurrentHashMap<>());
32 }
33
34 static LongAdder getKeyCounter(String name, long key) {
35 return getKeyCounters(name).computeIfAbsent(key, __ -> new LongAdder());

Callers 2

getKeyCounterMethod · 0.95
verifyMethod · 0.80

Calls 1

computeIfAbsentMethod · 0.65

Tested by

no test coverage detected