Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
IList.stringInList
Looks for a string within this list.
Syntax
public boolean stringInList(String item)Parameters
item- String to search for in list
Description
The
stringInListmethod looks for a string within a list.For one-column lists, it can be implemented to determine whether a given value is in any row. This method only works on
StringListandFileListobjects.Returns
Returns
trueif string is in list. Returnsfalseif the string is not in the list, or if anIListimplementation does not support this method.Example
IList listA = ics.GetList("myList"); boolean inList = listA.stringInList("this string"); if (!inList) { //the string you supplied is not in the list //or the IList implementation does not support this method. }
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.