|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.text.TextUtils.SimpleStringSplitter
public static class 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", "".
| Constructor Summary | |
|---|---|
TextUtils.SimpleStringSplitter(char delimiter)
Initializes the splitter. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns if there are more elements to iterate. |
Iterator<String> |
iterator()
Returns an Iterator for the elements in this object. |
String |
next()
Returns the next object in the iteration. |
void |
remove()
Removes the last object returned by next from the
collection. |
void |
setString(String string)
Sets the string to split |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextUtils.SimpleStringSplitter(char delimiter)
delimiter - the delimeter on which to split| Method Detail |
|---|
public void setString(String string)
setString in interface TextUtils.StringSplitterstring - the string to splitpublic Iterator<String> iterator()
IterableReturns an Iterator for the elements in this object.
iterator in interface Iterable<String>Iterator instance.public boolean hasNext()
Iterator
hasNext in interface Iterator<String>Iterator.next()public String next()
Iterator
next in interface Iterator<String>Iterator.hasNext()public void remove()
Iteratornext from the
collection.
remove in interface Iterator<String>
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||