java.lang.Object | |
↳ | android.text.TextUtils.SimpleStringSplitter |
A simple string splitter.
If the final character in the string to split is the delimiter then no empty string will be returned for the empty string after that delimeter. That is, splitting "a,b," on comma will return "a", "b" , not "a", "b", "" .
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Initializes the splitter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns true if there is at least one more element, false otherwise.
|
||||||||||
|
Returns an
Iterator
for the elements in this object.
|
||||||||||
|
Returns the next object and advances the iterator.
|
||||||||||
|
Removes the last object returned by
next
from the collection.
|
||||||||||
|
Sets the string to split
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.text.TextUtils.StringSplitter
|
|||||||||||
From interface
java.lang.Iterable
|
|||||||||||
From interface
java.util.Iterator
|
Initializes the splitter. setString may be called later.
delimiter | the delimeter on which to split |
---|
Returns true if there is at least one more element, false otherwise.
Returns an
Iterator
for the elements in this object.
Iterator
instance.
Returns the next object and advances the iterator.
Removes the last object returned by
next
from the collection.
This method can only be called once between each call to
next
.
Sets the string to split
string | the string to split |
---|