org.databene.benerator.distribution.sequence
Class ShuffleSequence

java.lang.Object
  extended by org.databene.benerator.distribution.Sequence
      extended by 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

Constructor Summary
ShuffleSequence()
           
ShuffleSequence(java.math.BigDecimal increment)
           
 
Method Summary
<T extends java.lang.Number>
NonNullGenerator<T>
createNumberGenerator(java.lang.Class<T> numberType, T min, T max, T granularity, boolean unique)
           
 
Methods inherited from class org.databene.benerator.distribution.Sequence
applyTo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShuffleSequence

public ShuffleSequence()

ShuffleSequence

public ShuffleSequence(java.math.BigDecimal increment)
Method Detail

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.