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()
StringPattern
resetCount
in interface StringPattern
public java.lang.String next()
StringPattern
next
in interface StringPattern