public class CounterPattern extends java.lang.Object implements StringPattern, java.io.Serializable
| Constructor and Description |
|---|
CounterPattern()
Instantiates a new counter pattern.
|
CounterPattern(int padding)
Instantiates a new counter pattern.
|
CounterPattern(int padding,
int increment)
Instantiates a new counter pattern.
|
CounterPattern(int count,
int padding,
int increment)
Instantiates a new counter pattern.
|
CounterPattern(int count,
int padding,
int increment,
int incrementInterval)
Instantiates a new counter pattern.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
next()
Next.
|
void |
resetCount()
Reset count.
|
public CounterPattern(int count,
int padding,
int increment,
int incrementInterval)
count - the countpadding - the paddingincrement - the incrementincrementInterval - the increment intervalpublic CounterPattern(int count,
int padding,
int increment)
count - the countpadding - the paddingincrement - the incrementpublic CounterPattern(int padding,
int increment)
padding - the paddingincrement - the incrementpublic CounterPattern(int padding)
padding - the paddingpublic CounterPattern()
public void resetCount()
StringPatternresetCount in interface StringPatternpublic java.lang.String next()
StringPatternnext in interface StringPattern