Search a java.util.List starting at a specific index
Is there a built-in method to search a java.util.List specifying the first item to start the search from? Like you can do with [Strings][1]

I know I can easily implement something on my own, but I'd rather not reinvent the wheel if Java or http://commons.apache.org/collections/api-release/org/apache/commons/collections/package-summary.html already has it.

  [1]: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#indexOf%28java.lang.String,%20int%29

Here's what I would like to do

    List<String> strings = new ArrayList<String>();
    // Add some values to the list here
    // Search starting from the 6th item in the list
    strings.indexOf("someValue", 5);

Right now I'm using


	/**
	 * This is like List.indexOf(), except that it allows you to specify the index to start the search from
	 * @param list
	 * @param toFind
	 * @param startingIndex
	 * @return
	 */
	public static int indexOf(List<Object> list, Object toFind, int startingIndex) {
            // Could have been implemented using subList
	    for (int index = startingIndex; index < list.size(); index++) {
	        Object current = list.get(index);
                if (current != null && current.equals(toFind)) {
                    return index;
                }
	    }
	    return -1;
	}	
Search a java.util.List starting at a specific index
===

Is there a built-in method to search a java.util.List specifying the first item to start the search from? Like you can do with [Strings][1]

I know I can easily implement something on my own, but I'd rather not reinvent the wheel if Java or http://commons.apache.org/collections/api-release/org/apache/commons/collections/package-summary.html already has it.

  [1]: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#indexOf%28java.lang.String,%20int%29

Here's what I would like to do

    List<String> strings = new ArrayList<String>();
    // Add some values to the list here
    // Search starting from the 6th item in the list
    strings.indexOf("someValue", 5);

Right now I'm using


	/**
	 * This is like List.indexOf(), except that it allows you to specify the index to start the search from
	 * @param list
	 * @param toFind
	 * @param startingIndex
	 * @return
	 */
	public static int indexOf(List<Object> list, Object toFind, int startingIndex) {
            // Could have been implemented using subList
	    for (int index = startingIndex; index < list.size(); index++) {
	        Object current = list.get(index);
                if (current != null && current.equals(toFind)) {
                    return index;
                }
	    }
	    return -1;
	}	