org.databene.benerator.primitive
Class DynamicLongGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<java.lang.Long>
org.databene.benerator.primitive.DynamicLongGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.Long>, Resettable, ThreadAware
- Direct Known Subclasses:
- DynamicCountGenerator
public class DynamicLongGenerator
- extends GeneratorProxy<java.lang.Long>
Generator implementation that generates Long numbers,
redefining the underlying distribution on each reset() by
evaluating the min, max, precision,
distribution and unique values.
Created: 27.03.2010 19:28:38
- Since:
- 0.6.0
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
min
protected Expression<java.lang.Long> min
max
protected Expression<java.lang.Long> max
precision
protected Expression<java.lang.Long> precision
distribution
protected Expression<? extends Distribution> distribution
unique
protected Expression<java.lang.Boolean> unique
DynamicLongGenerator
public DynamicLongGenerator()
DynamicLongGenerator
public DynamicLongGenerator(Expression<java.lang.Long> min,
Expression<java.lang.Long> max,
Expression<java.lang.Long> precision,
Expression<? extends Distribution> distribution,
Expression<java.lang.Boolean> unique)
init
public void init(GeneratorContext context)
- ensures consistency of the state
- Specified by:
init in interface Generator<java.lang.Long>- Overrides:
init in class GeneratorWrapper<java.lang.Long,java.lang.Long>
reset
public void reset()
- Specified by:
reset in interface Resettable- Overrides:
reset in class GeneratorWrapper<java.lang.Long,java.lang.Long>
resetMembers
protected void resetMembers(java.lang.Long minValue,
java.lang.Long maxValue)
Copyright © 2010. All Rights Reserved.