/*
(non-Javadoc)

@see java.util.List#indexOf(java.lang.Object)
194740
public int indexOf(Object o) {
		try {
			for (int i = 0; i < events.size(); i++) {
				if (events.get(i).equals(o)) {
					return i;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		return -1;
	}
1360941
function indexOf(srcArr, predicate) {
      for (var i = 0; i < srcArr.length; i++) {
        if (isObj(predicate)) {
          if (keys(predicate).every(
            function (k) { return srcArr[i][k] === predicate[k]; })
          ) return i;
        } else if (isFun(predicate)) {
          if (predicate(srcArr[i])) return i;
        }
      }
      return srcArr.indexOf(predicate);
    }
347410
public static int indexOf(List<?> data, Object entry) {
        return data == null ? -1 : data.indexOf(entry);
    }
1130980
public static int indexOf(CharSequence seq, CharSequence pattern, int fromIndex)
    {
        return indexOf(seq, pattern, (int a, int b)->{return a==b;}, fromIndex);
    }
751297
public static int indexOf(String[] arr, String value) {
	for (int i = 0; i < arr.length; i++) {
	    if (arr[i].equals(value)) return i;
	}
	return -1;
    }
831124
@Deprecated
    public static int indexOf(CharSequence s, int codePoint) {
        int cp;
        for (int i = 0; i < s.length(); i += Character.charCount(cp)) {
            cp = Character.codePointAt(s, i);
            if (cp == codePoint) {
                return i;
            }
        }
        return -1;
    }
293004
public int indexOf(Object obj) {
        if (obj instanceof JavascriptObject) {
            return checkInteger(invokeJavascript("indexOf", ((JavascriptObject) obj).getJSObject()), -1);
        }
        return checkInteger(invokeJavascript("indexOf", obj), -1);
    }
156699
@Unstable
    public long indexOf(Block child)
    {
        CounterBlockMatcher counter = new CounterBlockMatcher(child);

        Block found = getFirstBlock(counter, Axes.ANCESTOR_OR_SELF);

        return found != null ? counter.getCount() : -1;
    }
422681
public final int indexOf(@ColorInt final int color) {
        for (int i = 0; i < colorPalette.length; i++) {
            if (colorPalette[i] == color) {
                return i;
            }
        }

        return -1;
    }
343663
public static int indexOf(double[] array, double val) {
        for (int i=0; i<array.length; i++) {
            if (array[i] == val) {
                return i;
            }
        }
        return -1;
    }
506230
function indexOf($value) {
        $i = 0;
        
        foreach($this->data as $val) {
            if($val === $value) {
                return $i;
            }
            
            $i++;
        }
        
        return null;
    }
1358295
public int indexOf(int ele) {
        int i;

        for (i = 0; i < size; i++) {
            if (data[i] == ele) {
                return i;
            }
        }
        return -1;
    }
977049
function indexesOf(a, elt) {
  var ret = [], index = 0;
  while ((index = a.indexOf(elt, index)) !== -1) {
    ret.push(index++);
  }
  return ret;
}
646221
@Override
	public int indexOf(Pair<T, I> element) {
		return matrix.indexOf(
				transactionToIndex(element.transaction), 
				itemToIndex(element.item));
	}
680905
protected static int indexOf (
        EqualityComparator eqc, Object[] list, Object element)
    {
        requireNotNull(element);
        if (list != null) {
            for (int ii = 0, nn = list.length; ii < nn; ii++) {
                if (eqc.equals(element, list[ii])) {
                    return ii;
                }
            }
        }
        return -1;
    }
544238
private int indexOf( String content, String needle, int offset ) {
        int index;
        while( (index = content.indexOf(needle, offset)) != -1 ) {
            String text = getLine(content, index).trim();
            if (text.startsWith(needle) || text.endsWith(needle))
                break;
            else
                offset = index + 1;
        }
        return index;
    }
1052981
function indexOf(match) {
        var i = matches.length;
        while (i--) {
          if (matches[i] === match) {
            return i;
          }
        }

        return -1;
      }