Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ contains
Method
contains
lowlevel/CircularSet.java:24–28 ·
view source on GitHub ↗
(int val)
Source
from the content-addressed store, hash-verified
22
index = ++index % size;
23
}
24
public
synchronized boolean contains(
int
val) {
25
for
(
int
i = 0; i < size; i++)
26
if
(array[i] == val)
return
true;
27
return
false;
28
}
29
}
Callers
15
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
main
Method · 0.80
run
Method · 0.80
tContains
Method · 0.80
checkForNewPassword
Method · 0.80
process
Method · 0.80
basicTest
Method · 0.80
main
Method · 0.80
put
Method · 0.80
get
Method · 0.80
Calls
no outgoing calls
Tested by
1
tContains
Method · 0.64