code: public static <T> int indexOf(T[] objectArray, T elem)
      {
          return InternalArrayIterate.indexOf(objectArray, objectArray.length, elem);
      }
docs: Searches for the first occurrence of the given argument, testing
  for equality using the <tt>equals</tt> method.