Class StepDoubleGenerator
- java.lang.Object
-
- com.rapiddweller.benerator.util.AbstractGenerator<E>
-
- com.rapiddweller.benerator.util.AbstractNonNullGenerator<E>
-
- com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator<java.lang.Double>
-
- com.rapiddweller.benerator.distribution.sequence.StepDoubleGenerator
-
- All Implemented Interfaces:
Generator<java.lang.Double>
,NonNullGenerator<java.lang.Double>
,com.rapiddweller.common.Resettable
,com.rapiddweller.common.ThreadAware
,java.io.Closeable
,java.lang.AutoCloseable
public class StepDoubleGenerator extends AbstractNonNullNumberGenerator<java.lang.Double>
Double Generator that implements a 'step' Double Sequence.
Created: 26.07.2007 18:36:45- Author:
- Volker Bergmann
-
-
Field Summary
-
Fields inherited from class com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator
generatedType, granularity, max, min
-
Fields inherited from class com.rapiddweller.benerator.util.AbstractGenerator
context, logger, state
-
-
Constructor Summary
Constructors Constructor Description StepDoubleGenerator()
Instantiates a new Step double generator.StepDoubleGenerator(double min, double max)
Instantiates a new Step double generator.StepDoubleGenerator(double min, double max, double increment)
Instantiates a new Step double generator.StepDoubleGenerator(double min, java.lang.Double max, double increment, java.lang.Double initial)
Instantiates a new Step double generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
generate()
Generate e.void
init(GeneratorContext context)
Init.void
reset()
-
Methods inherited from class com.rapiddweller.benerator.primitive.number.AbstractNonNullNumberGenerator
getGeneratedType, getGranularity, getMax, getMin, isParallelizable, isThreadSafe, setGranularity, setMax, setMin
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractNonNullGenerator
generate
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, toString, wasInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.rapiddweller.benerator.Generator
close, wasInitialized
-
-
-
-
Constructor Detail
-
StepDoubleGenerator
public StepDoubleGenerator()
Instantiates a new Step double generator.
-
StepDoubleGenerator
public StepDoubleGenerator(double min, double max)
Instantiates a new Step double generator.- Parameters:
min
- the minmax
- the max
-
StepDoubleGenerator
public StepDoubleGenerator(double min, double max, double increment)
Instantiates a new Step double generator.- Parameters:
min
- the minmax
- the maxincrement
- the increment
-
StepDoubleGenerator
public StepDoubleGenerator(double min, java.lang.Double max, double increment, java.lang.Double initial)
Instantiates a new Step double generator.- Parameters:
min
- the minmax
- the maxincrement
- the incrementinitial
- the initial
-
-
Method Detail
-
init
public void init(GeneratorContext context)
Description copied from interface:Generator
Init.- Specified by:
init
in interfaceGenerator<java.lang.Double>
- Overrides:
init
in classAbstractNonNullNumberGenerator<java.lang.Double>
- Parameters:
context
- the context
-
generate
public java.lang.Double generate()
Description copied from interface:NonNullGenerator
Generate e.- Specified by:
generate
in interfaceNonNullGenerator<java.lang.Double>
- Specified by:
generate
in classAbstractNonNullGenerator<java.lang.Double>
- Returns:
- the e
-
reset
public void reset()
- Specified by:
reset
in interfacecom.rapiddweller.common.Resettable
- Overrides:
reset
in classAbstractGenerator<java.lang.Double>
-
-