List.indexOf

Gets the index of an item. <p> The list is searched starting at 0 until an item is found that is equal to the search item. If no item is found, -1 is returned. Indexing is zero based.

@param string the search item @return the index of the item

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

  1. int indexOf(String string)
    class List
    int
    indexOf
    (
    String string
    )
  2. int indexOf(String string, int start)

Meta