|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.util.AbstractTokenIterator
public abstract class AbstractTokenIterator
Abstract base class for TokenIterators to extend.
| Constructor Summary | |
|---|---|
AbstractTokenIterator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.twelvemonkeys.util.TokenIterator |
|---|
reset |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next |
| Constructor Detail |
|---|
public AbstractTokenIterator()
| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||