Modifier | Constructor and Description |
---|---|
protected |
StringList(com.google.gwt.core.client.JavaScriptObject ot) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String str)
Returns true/false depending on whether the given string is in the list.
|
String |
item(int index)
Returns the specified item from the list.
|
Iterator<String> |
iterator()
Returns an iterator over the
String
elements in this list in proper sequence. |
int |
length()
The length of the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final int length()
public final String item(int index) throws com.google.gwt.core.client.JavaScriptException
index
- The index of the item from the list which is to be returned.
The first item is number 0.DOMException(INDEX_SIZE_ERR)
- Raised if the index number is greater
than or equal to length()
.com.google.gwt.core.client.JavaScriptException
public final boolean contains(String str)
str
- The item to test.public final Iterator<String> iterator()
String
elements in this list in proper sequence.
This implementation returns a straightforward implementation of the
iterator interface, relying on the backing list's length()
,
and item(int)
methods.
Note that the iterator returned by this method will throw an
UnsupportedOperationException
in response to its
remove
method.
Copyright © 2017. All Rights Reserved.