org.databene.benerator.wrapper
Class WeighingGeneratorWrapper<E>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<E>
org.databene.benerator.wrapper.WeighingGeneratorWrapper<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<E>, WeightedGenerator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware, org.databene.commons.Weighted
public class WeighingGeneratorWrapper<E>
- extends GeneratorProxy<E>
- implements WeightedGenerator<E>
Wraps an ordinary Generator
with a WeightedGenerator
interface
requiring an explicit weight setting.
Created: 29.08.2011 22:34:03
- Since:
- 0.7.0
- Author:
- Volker Bergmann
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, init, isParallelizable, isThreadSafe, reset, setSource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.databene.commons.ThreadAware |
isParallelizable, isThreadSafe |
Methods inherited from interface org.databene.commons.Resettable |
reset |
WeighingGeneratorWrapper
public WeighingGeneratorWrapper(java.lang.Class<E> generatedType,
double weight)
WeighingGeneratorWrapper
public WeighingGeneratorWrapper(Generator<E> source,
double weight)
getWeight
public double getWeight()
- Specified by:
getWeight
in interface org.databene.commons.Weighted
Copyright © 2013. All Rights Reserved.