org.databene.benerator.distribution
Class WeightedLongGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.primitive.number.AbstractNumberGenerator<java.lang.Long>
org.databene.benerator.distribution.WeightedLongGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.Long>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class WeightedLongGenerator
- extends AbstractNumberGenerator<java.lang.Long>
Long Generator that supports a weight function.
Created: 18.06.2006 15:00:41
- Since:
- 0.1
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WeightedLongGenerator
public WeightedLongGenerator()
WeightedLongGenerator
public WeightedLongGenerator(long min,
long max)
WeightedLongGenerator
public WeightedLongGenerator(long min,
long max,
long precision)
WeightedLongGenerator
public WeightedLongGenerator(long min,
long max,
WeightFunction function)
WeightedLongGenerator
public WeightedLongGenerator(long min,
long max,
long precision,
WeightFunction function)
getDistribution
public Distribution getDistribution()
setDistribution
public void setDistribution(Distribution distribution)
init
public void init(GeneratorContext context)
- Specified by:
init in interface Generator<java.lang.Long>- Overrides:
init in class AbstractNumberGenerator<java.lang.Long>
generate
public java.lang.Long generate()
throws IllegalGeneratorStateException
- Description copied from interface:
Generator
- Returns an instance of the generic type E.
- Throws:
IllegalGeneratorStateException
Copyright © 2011. All Rights Reserved.