MCPcopy 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

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
runMethod · 0.80
tContainsMethod · 0.80
checkForNewPasswordMethod · 0.80
processMethod · 0.80
basicTestMethod · 0.80
mainMethod · 0.80
putMethod · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by 1

tContainsMethod · 0.64