org.databene.benerator.distribution.sequence
Class StepSequence
java.lang.Object
org.databene.benerator.distribution.Sequence
org.databene.benerator.distribution.sequence.StepSequence
- All Implemented Interfaces:
- Distribution
public class StepSequence
- extends Sequence
Creates numbers by continuously incrementing a base value by a constant amount.
Created at 30.06.2009 09:55:20
- Since:
- 0.6.0
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StepSequence
public StepSequence()
StepSequence
public StepSequence(java.math.BigDecimal increment)
- Parameters:
increment - the increment to choose for created generators.
When using null, the precision parameter will be used to set the increment
in createGenerator(Class, Number, Number, Number, boolean)
StepSequence
public StepSequence(java.math.BigDecimal increment,
java.math.BigDecimal initial)
getIncrement
public java.math.BigDecimal getIncrement()
getInitial
public java.math.BigDecimal getInitial()
applyTo
public <T> Generator<T> applyTo(Generator<T> source,
boolean unique)
- Specified by:
applyTo in interface Distribution- Overrides:
applyTo in class Sequence
createGenerator
public <T extends java.lang.Number> Generator<T> createGenerator(java.lang.Class<T> numberType,
T min,
T max,
T precision,
boolean unique)
toString
public java.lang.String toString()
- Overrides:
toString in class Sequence
Copyright © 2010. All Rights Reserved.