public abstract class AbstractTokenIterator extends Object implements TokenIterator
TokenIterators to extend.
| Constructor and Description |
|---|
AbstractTokenIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
This implementation simply returns
hasNext(). |
boolean |
hasMoreTokens() |
String |
nextElement()
This implementation simply returns
next(). |
String |
nextToken()
Returns the next element in the iteration as a
String. |
void |
remove()
Not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetpublic void remove()
remove in interface Iterator<String>UnsupportedOperationException - remove is not supported by
this Iterator.public final boolean hasMoreTokens()
hasMoreTokens in interface TokenIteratorpublic final String nextToken()
String.
This implementation simply returns (String) next().nextToken in interface TokenIteratorNoSuchElementException - iteration has no more elements.Iterator.next()public final boolean hasMoreElements()
hasNext().hasMoreElements in interface Enumeration<String>Iterator.hasNext()public final String nextElement()
next().nextElement in interface Enumeration<String>Iterator.next()Copyright © 2014. All Rights Reserved.