Class ArrayGenerator
java.lang.Object
io.deephaven.engine.testutil.v2.sources.ArrayGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayGenerator.ArrayAdaptergetAdapter(Object array) static ArrayGenerator.ChunkAdaptergetChunkAdapter(Object chunk) static long[]indexDataGenerator(Random random, int size, double gapProbability, int maxStep, int maxValue) static byte[]randomBooleans(Random random, int size) static boolean[]randomBooleans(Random random, int size, boolean minValue, boolean maxValue) static boolean[]randomBooleans(Random random, int size, int spaceSize) static Boolean[]randomBoxedBooleans(Random random, int size) static byte[]randomBytes(Random random, int size) static byte[]randomBytes(Random random, int size, byte minValue, byte maxValue) static byte[]randomBytes(Random random, int size, int spaceSize) static char[]randomChars(Random random, int size) static char[]randomChars(Random random, int size, char minValue, char maxValue) static char[]randomChars(Random random, int size, int spaceSize) static double[]randomDoubles(Random random, int size) static double[]randomDoubles(Random random, int size, double minValue, double maxValue) static double[]randomDoubles(Random random, int size, int spaceSize) static float[]randomFloats(Random random, int size) static float[]randomFloats(Random random, int size, float minValue, float maxValue) static float[]randomFloats(Random random, int size, int spaceSize) static int[]randomInts(Random random, int size) static int[]randomInts(Random random, int size, int spaceSize) static int[]randomInts(Random random, int size, int minValue, int maxValue) static long[]randomLongs(Random random, int size) static long[]randomLongs(Random random, int size, int spaceSize) static long[]randomLongs(Random random, int size, long minValue, long maxValue) static Object[]randomObjects(Random random, int size) static Object[]randomObjects(Random random, int size, int minValue, int maxValue) static short[]randomShorts(Random random, int size) static short[]randomShorts(Random random, int size, int spaceSize) static short[]randomShorts(Random random, int size, short minValue, short maxValue) static String[]randomStrings(Random random, int size, int spaceSize) static ObjectrandomValues(Class objectType, Random random, int size, int spaceSize)
-
Constructor Details
-
ArrayGenerator
public ArrayGenerator()
-
-
Method Details
-
randomBooleans
-
randomBoxedBooleans
-
randomBytes
-
randomChars
-
randomDoubles
-
randomFloats
-
randomInts
-
randomObjects
-
randomShorts
-
randomLongs
-
randomValues
- Parameters:
objectType- The type of the elements buit into the arrayrandom- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomBooleans
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomBytes
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomChars
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomInts
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomLongs
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomShorts
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomDoubles
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomFloats
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomStrings
- Parameters:
random- An instance of the random number generator to be usedsize- The number of elements in the resultspaceSize- The size of the random values domain (the number of distinct possible values that may exist in the result- Returns:
- An array with random values
-
randomBooleans
-
randomBytes
-
randomChars
-
randomDoubles
-
randomFloats
-
randomInts
-
randomLongs
-
randomShorts
-
randomObjects
-
indexDataGenerator
public static long[] indexDataGenerator(Random random, int size, double gapProbability, int maxStep, int maxValue) -
getAdapter
-
getChunkAdapter
-