MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / find

Method find

chapter19/src/main/java/com/seaofnodes/simple/Ary.java:169–172  ·  view source on GitHub ↗

Find the first matching element using ==, or -1 if none. Note that most del calls shuffle the list, so the first element might be random. @param e Element to find @return index of first matching element, or -1 if none

( E e )

Source from the content-addressed store, hash-verified

167 * @param e Element to find
168 * @return index of first matching element, or -1 if none */
169 public int find( E e ) {
170 for( int i=0; i<_len; i++ ) if( _es[i]==e ) return i;
171 return -1;
172 }
173
174
175 /** @return an iterator */

Callers 11

_prettyPrintScheduledMethod · 0.95
parallelAssignPhisMethod · 0.45
loadMethod · 0.45
storeMethod · 0.45
getFieldIndexMethod · 0.45
buildMethod · 0.45
doReplacementMethod · 0.45
cleanVariablesMethod · 0.45
fMethod · 0.45
printLineMethod · 0.45
anti_depMethod · 0.45

Calls

no outgoing calls

Tested by 7

parallelAssignPhisMethod · 0.36
loadMethod · 0.36
storeMethod · 0.36
getFieldIndexMethod · 0.36
buildMethod · 0.36
doReplacementMethod · 0.36
cleanVariablesMethod · 0.36