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

Method add

src/org/antlr/codebuff/misc/HashBag.java:51–60  ·  view source on GitHub ↗
(T key)

Source from the content-addressed store, hash-verified

49 }
50
51 public Integer add(T key) {
52 MutableInt I = data.get(key);
53 if ( I==null ) {
54 data.put(key, new MutableInt(1));
55 }
56 else {
57 I.inc();
58 }
59 return get(key);
60 }
61
62 @Override
63 public Integer remove(Object key) {

Callers 2

getVotesBagMethod · 0.95
getCategoriesBagMethod · 0.95

Calls 4

incMethod · 0.95
getMethod · 0.95
getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected