# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# TextUtils.SimpleStringSplitter

`public static class TextUtils.SimpleStringSplitter`
`extends Object` `implements TextUtils.StringSplitter, Iterator<String>`

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", ""`.

## Summary

### Public constructors
`SimpleStringSplitter(char delimiter)` Initializes the splitter.

### Public methods
`boolean` | `hasNext()` Returns `true` if the iteration has more elements.
`Iterator<String>` | `iterator()` Returns an iterator over elements of type `T`.
`String` | `next()` Returns the next element in the iteration.
`void` | `remove()` Removes from the underlying collection the last element returned by this iterator (optional operation).
`void` | `setString(String string)` Sets the string to split

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.text.TextUtils.StringSplitter`
`abstract void` | `setString(String string)`
From interface `java.util.Iterator`
`default void` | `forEachRemaining(Consumer<? super E> action)` Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
`abstract boolean` | `hasNext()` Returns `true` if the iteration has more elements.
`abstract String` | `next()` Returns the next element in the iteration.
`default void` | `remove()` Removes from the underlying collection the last element returned by this iterator (optional operation).
From interface `java.lang.Iterable`
`default void` | `forEach(Consumer<? super T> action)` Performs the given action for each element of the `Iterable` until all elements have been processed or the action throws an exception.
`abstract Iterator<String>` | `iterator()` Returns an iterator over elements of type `T`.
`default Spliterator<String>` | `spliterator()` Creates a `Spliterator` over the elements described by this `Iterable`.

## Public constructors

### SimpleStringSplitter

    public SimpleStringSplitter (char delimiter)

Initializes the splitter. setString may be called later.

Parameters
`delimiter` | `char`: the delimeter on which to split

## Public methods

### hasNext

    public boolean hasNext ()

Returns `true` if the iteration has more elements. (In other words, returns `true` if `next()` would return an element rather than throwing an exception.)

Returns
`boolean` | `true` if the iteration has more elements

### iterator

    public Iterator<String> iterator ()

Returns an iterator over elements of type `T`.

Returns
`Iterator<String>` | an Iterator.

### next

    public String next ()

Returns the next element in the iteration.

Returns
`String` | the next element in the iteration

### remove

    public void remove ()

Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call to `next()`. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.

### setString

    public void setString (String string)

Sets the string to split

Parameters
`string` | `String`: the string to split

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*