org.databene.benerator.sample
Class MappedSampleGenerator<E>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.ThreadSafeGenerator<E>
org.databene.benerator.sample.AbstractSampleGenerator<E>
org.databene.benerator.sample.IndividualWeightGenerator<E>
org.databene.benerator.sample.MappedSampleGenerator<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class MappedSampleGenerator<E>
- extends IndividualWeightGenerator<E>
IndividualWeightGenerator implementation that organizes
sample data in a Map of value-weight associations.
Created at 12.07.2009 00:29:58
- Since:
- 0.6.0
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MappedSampleGenerator
public MappedSampleGenerator(java.lang.Class<E> generatedType,
E... values)
MappedSampleGenerator
public MappedSampleGenerator(java.lang.Class<E> generatedType,
java.lang.Iterable<E> values)
addSample
public void addSample(E sample)
addSample
public void addSample(E sample,
double weight)
containsSample
public boolean containsSample(E sample)
init
public void init(GeneratorContext context)
- Description copied from class:
IndividualWeightGenerator
- Initializes all attributes
- Specified by:
init in interface Generator<E>- Overrides:
init in class IndividualWeightGenerator<E>
toString
public java.lang.String toString()
- Overrides:
toString in class IndividualWeightGenerator<E>
Copyright © 2011. All Rights Reserved.