Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antlr/codebuff
/ add
Method
add
output/java8/1.4.17/StringTable.java:42–48 ·
view source on GitHub ↗
(String s)
Source
from the content-addressed store, hash-verified
40
41
protected
int
i = -1;
42
public
int
add(String s) {
43
Integer I = table.get(s);
44
if
( I!=null )
return
I;
45
i++;
46
table.put(s, i);
47
return
i;
48
}
49
50
public
String[] toArray() {
51
String[] a =
new
String[table.size()];
Callers
nothing calls this directly
Calls
2
get
Method · 0.65
put
Method · 0.65
Tested by
no test coverage detected