public final class StringTokenizerIterator extends AbstractProtectedIterator<String>
StringTokenizerIterator is an AbstractProtectedIterator that can be wrapped
around a given StringTokenizer and yields all tokens yielded by the
given StringTokenizer.| Constructor and Description |
|---|
StringTokenizerIterator(StringTokenizer tokenizer)
Creates a new
StringTokenizerIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
String |
next() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic StringTokenizerIterator(StringTokenizer tokenizer) throws IllegalArgumentException
StringTokenizerIterator.tokenizer - The StringTokenizer to iterate over.IllegalArgumentException - If the given StringTokenizer is null.public boolean hasNext()
public String next() throws NoSuchElementException
NoSuchElementExceptionCopyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.