public class DefaultLongNumericGenerator extends java.lang.Object implements LongNumericGenerator
Constructor and Description |
---|
DefaultLongNumericGenerator()
Instantiates a new default long numeric generator.
|
DefaultLongNumericGenerator(long initialValue)
Instantiates a new default long numeric generator.
|
Modifier and Type | Method and Description |
---|---|
long |
getNextLong()
Get the next long in the sequence.
|
java.lang.String |
getNextNumberAsString()
Method to retrieve the next number as a String.
|
protected long |
getNextValue()
Gets the next value.
|
int |
maxLength()
The guaranteed maximum length of a String returned by this generator.
|
int |
minLength()
The guaranteed minimum length of a String returned by this generator.
|
public DefaultLongNumericGenerator()
public DefaultLongNumericGenerator(long initialValue)
initialValue
- the initial valuepublic long getNextLong()
LongNumericGenerator
getNextLong
in interface LongNumericGenerator
public java.lang.String getNextNumberAsString()
NumericGenerator
getNextNumberAsString
in interface NumericGenerator
public int maxLength()
NumericGenerator
maxLength
in interface NumericGenerator
public int minLength()
NumericGenerator
minLength
in interface NumericGenerator
protected long getNextValue()
Long.MAX_VALUE
,
then Long.MAX_VALUE
is returned. Otherwise, the next increment.