org.databene.benerator.distribution.sequence
Class ShuffleSequence
java.lang.Object
org.databene.benerator.distribution.Sequence
org.databene.benerator.distribution.sequence.ShuffleSequence
- All Implemented Interfaces:
- Distribution
public class ShuffleSequence
- extends Sequence
Sequence
implementation that implements a 'shuffle' behavior,
by continuously incrementing a base value by a constant value and,
when iterated through the number range, restarts with a value incremented by one.
The numbers generated by a related generator instance is unique as long as the
generator is not reset.
Created at 30.06.2009 06:57:35
- Since:
- 0.6.0
- Author:
- Volker Bergmann
Method Summary |
|
createNumberGenerator(java.lang.Class<T> numberType,
T min,
T max,
T granularity,
boolean unique)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShuffleSequence
public ShuffleSequence()
ShuffleSequence
public ShuffleSequence(java.math.BigDecimal increment)
createNumberGenerator
public <T extends java.lang.Number> NonNullGenerator<T> createNumberGenerator(java.lang.Class<T> numberType,
T min,
T max,
T granularity,
boolean unique)
Copyright © 2013. All Rights Reserved.