public abstract class AbstractTokenIterator extends Object implements TokenIterator
TokenIterator
s 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, wait
reset
forEachRemaining, hasNext, next
public void remove()
remove
in interface Iterator<String>
UnsupportedOperationException
- remove
is not supported by
this Iterator.public final boolean hasMoreTokens()
hasMoreTokens
in interface TokenIterator
public final String nextToken()
String
.
This implementation simply returns (String) next()
.nextToken
in interface TokenIterator
NoSuchElementException
- 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 © 2017. All rights reserved.