Class CharGenerator
java.lang.Object
io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator<T,T>
io.deephaven.engine.testutil.generator.AbstractGenerator<Character>
io.deephaven.engine.testutil.generator.CharGenerator
- All Implemented Interfaces:
TestDataGenerator<Character,Character>
Generates columns of random characters.
-
Constructor Summary
ConstructorsConstructorDescriptionCharGenerator(char from, char to) CharGenerator(char from, char 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
-
CharGenerator
public CharGenerator() -
CharGenerator
public CharGenerator(char from, char to) -
CharGenerator
public CharGenerator(char from, char 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<Character,Character> - Overrides:
populateChunkin classAbstractReinterpretedGenerator<Character,Character> - 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
-