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

Method lastIndexOf

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

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

(int[] array, int target)

Source from the content-addressed store, hash-verified

202 * such index exists.
203 */
204 public static int lastIndexOf(int[] array, int target) {
205 return lastIndexOf(array, target, 0, array.length);
206 }
207
208 // TODO(kevinb): consider making this public
209 private static int lastIndexOf(int[] array, int target, int start, int end) {

Callers 12

lastIndexOfMethod · 0.95
getSimpleNameMethod · 0.45
getPackageNameMethod · 0.45
getFileExtensionMethod · 0.45
showMethod · 0.45
stripLastPathElementMethod · 0.45
getFileNameNoSuffixMethod · 0.45
getParentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected