MCPcopy Create free account
hub / github.com/antlr/codebuff / indexOf

Method indexOf

corpus/java/training/guava/primitives/Ints.java:152–154  ·  view source on GitHub ↗

Returns the index of the first appearance of the value target in array. @param array an array of int values, possibly empty @param target a primitive int value @return the least index i for which array[i] == target, or -1 if no such index

(int[] array, int target)

Source from the content-addressed store, hash-verified

150 * such index exists.
151 */
152 public static int indexOf(int[] array, int target) {
153 return indexOf(array, target, 0, array.length);
154 }
155
156 // TODO(kevinb): consider making this public
157 private static int indexOf(int[] array, int target, int start, int end) {

Callers 11

containsMethod · 0.95
indexOfMethod · 0.95
applyMethod · 0.45
formatMethod · 0.45
fromStringMethod · 0.45
toStringMethod · 0.45
addMethod · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45
setTextMethod · 0.45

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected