Package com.hubspot.jinjava.random
Class DeferredRandomNumberGenerator
- java.lang.Object
-
- java.util.Random
-
- com.hubspot.jinjava.random.DeferredRandomNumberGenerator
-
- All Implemented Interfaces:
Serializable
public class DeferredRandomNumberGenerator extends Random
A random number generator that throwsDeferredValueExceptionfor all supported methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeferredRandomNumberGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleStreamdoubles()DoubleStreamdoubles(double randomNumberOrigin, double randomNumberBound)DoubleStreamdoubles(long streamSize)DoubleStreamdoubles(long streamSize, double randomNumberOrigin, double randomNumberBound)IntStreamints()IntStreamints(int randomNumberOrigin, int randomNumberBound)IntStreamints(long streamSize)IntStreamints(long streamSize, int randomNumberOrigin, int randomNumberBound)LongStreamlongs()LongStreamlongs(long streamSize)LongStreamlongs(long randomNumberOrigin, long randomNumberBound)LongStreamlongs(long streamSize, long randomNumberOrigin, long randomNumberBound)protected intnext(int bits)booleannextBoolean()voidnextBytes(byte[] bytes)doublenextDouble()floatnextFloat()doublenextGaussian()intnextInt()intnextInt(int bound)longnextLong()
-
-
-
Method Detail
-
nextBoolean
public boolean nextBoolean()
- Overrides:
nextBooleanin classRandom
-
nextDouble
public double nextDouble()
- Overrides:
nextDoublein classRandom
-
nextGaussian
public double nextGaussian()
- Overrides:
nextGaussianin classRandom
-
ints
public IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound)
-
ints
public IntStream ints(int randomNumberOrigin, int randomNumberBound)
-
longs
public LongStream longs(long streamSize)
-
longs
public LongStream longs()
-
longs
public LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound)
-
longs
public LongStream longs(long randomNumberOrigin, long randomNumberBound)
-
doubles
public DoubleStream doubles(long streamSize)
-
doubles
public DoubleStream doubles()
-
doubles
public DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound)
-
doubles
public DoubleStream doubles(double randomNumberOrigin, double randomNumberBound)
-
-