protected static class GTIngredient.FieldIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.String>
Red (tfeng) |
Yellow (tfeng) |
Constructor and Description |
---|
FieldIterator(java.lang.String values)
Construct a field iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Return whether there is a next field.
|
java.lang.String |
next()
Return the next field, if there is any, or null if the end of the
string has been reached.
|
void |
remove()
Throw a runtime exception because this method is not implemented.
|
public FieldIterator(java.lang.String values)
values
- The string containing the values in fields.public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.String>
public java.lang.String next()
next
in interface java.util.Iterator<java.lang.String>
public void remove()
remove
in interface java.util.Iterator<java.lang.String>