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

Method find

chapter24/src/main/java/com/seaofnodes/simple/util/Ary.java:181–184  ·  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

179 * @param e Element to find
180 * @return index of first matching element, or -1 if none */
181 public int find( E e ) {
182 for( int i=0; i<_len; i++ ) if( _es[i]==e ) return i;
183 return -1;
184 }
185
186
187 /** @return an iterator */

Callers 11

recurCloseMethod · 0.95
_prettyPrintScheduledMethod · 0.95
parallelAssignPhisMethod · 0.45
loadMethod · 0.45
storeMethod · 0.45
getFieldIndexMethod · 0.45
buildMethod · 0.45
doReplacementMethod · 0.45
cleanVariablesMethod · 0.45
parseMethod · 0.45
printLineMethod · 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