Class ShortGenerator
java.lang.Object
io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator<T,T>
io.deephaven.engine.testutil.generator.AbstractGenerator<Short>
io.deephaven.engine.testutil.generator.ShortGenerator
- All Implemented Interfaces:
TestDataGenerator<Short,Short>
Generates columns of random shortacters.
-
Constructor Summary
ConstructorsConstructorDescriptionShortGenerator(short from, short to) ShortGenerator(short from, short to, double nullFraction) -
Method Summary
Modifier and TypeMethodDescriptiongetType()populateChunk(ReadOnlyIndex toAdd, Random random) Create a chunk for the given index using random for any desired entropy.Methods inherited from class io.deephaven.engine.testutil.generator.AbstractGenerator
getColumnTypeMethods inherited from class io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator
onRemove, shift
-
Constructor Details
-
ShortGenerator
public ShortGenerator() -
ShortGenerator
public ShortGenerator(short from, short to) -
ShortGenerator
public ShortGenerator(short from, short to, double nullFraction)
-
-
Method Details
-
nextValue
-
populateChunk
Description copied from interface:TestDataGeneratorCreate a chunk for the given index using random for any desired entropy.- Specified by:
populateChunkin interfaceTestDataGenerator<Short,Short> - Overrides:
populateChunkin classAbstractReinterpretedGenerator<Short,Short> - Parameters:
toAdd- the index to add values forrandom- the random number generator used for this test- Returns:
- a chunk of primitives or boxed objects of type U
-
getType
- Returns:
- the type of the chunk that we populate
-