public class StringIndexSequence extends BaseFieldGenerator<String>
String.| Constructor and Description |
|---|
StringIndexSequence(String format)
Generates a @{code String} based on a format and a ever growing number.
|
StringIndexSequence(String format,
Long start)
Generates a @{code String} based on a format and a ever growing number.
|
| Modifier and Type | Method and Description |
|---|---|
String |
current()
Returns the next sequence value.
|
boolean |
hasNext()
Always returns false.
|
String |
next()
Returns the next generated value.
|
void |
reset()
Does nothing.
|
String |
toString() |
removepublic StringIndexSequence(String format)
format - the format to use. Must be compliant with String.format(String, Object...).public StringIndexSequence(String format, Long start)
format - the format to use. Must be compliant with String.format(String, Object...).start - the start index of the sequencepublic void reset()
public String current()
public boolean hasNext()
false.public String next()
Copyright © 2014. All Rights Reserved.