org.databene.benerator.wrapper
Class ByteArrayGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<S,P>
org.databene.benerator.wrapper.CardinalGenerator<S,P>
org.databene.benerator.wrapper.SingleSourceArrayGenerator<java.lang.Byte,byte[]>
org.databene.benerator.wrapper.ByteArrayGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<byte[]>, NonNullGenerator<byte[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class ByteArrayGenerator
- extends SingleSourceArrayGenerator<java.lang.Byte,byte[]>
Creates arrays of random length filled with random bytes.
- Since:
- 0.3.04
- Author:
- Volker Bergmann
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 |
ByteArrayGenerator
public ByteArrayGenerator()
ByteArrayGenerator
public ByteArrayGenerator(Generator<java.lang.Byte> source,
int minLength,
int maxLength)
ByteArrayGenerator
public ByteArrayGenerator(Generator<java.lang.Byte> source,
int minLength,
int maxLength,
Distribution distribution)
generate
public ProductWrapper<byte[]> generate(ProductWrapper<byte[]> wrapper)
- Description copied from interface:
Generator
- Returns an instance of the generic type E, using the
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
- Specified by:
generate
in interface Generator<byte[]>
- Overrides:
generate
in class SingleSourceArrayGenerator<java.lang.Byte,byte[]>
Copyright © 2013. All Rights Reserved.