Interface Java8CompatRandom
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AesCounterRandom
,BaseRandom
,BaseSplittableRandomAdapter
,CipherCounterRandom
,Cmwc4096Random
,DirectSplittableRandomAdapter
,EntropyBlockingRandomWrapper
,EntropyBlockingSplittableRandomAdapter
,MersenneTwisterRandom
,Pcg128Random
,Pcg64Random
,RandomWrapper
,ReseedingThreadLocalRandomWrapper
,SingleThreadSplittableRandomAdapter
,SplittableRandomAdapter
,ThreadLocalRandomWrapper
,XorShiftRandom
public interface Java8CompatRandom extends Serializable
This interface contains all the stream methods ofRandom
backported from Java 8.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java8.util.stream.DoubleStream
doubles()
java8.util.stream.DoubleStream
doubles(double randomNumberOrigin, double randomNumberBound)
java8.util.stream.DoubleStream
doubles(long streamSize)
java8.util.stream.DoubleStream
doubles(long streamSize, double randomNumberOrigin, double randomNumberBound)
java8.util.stream.IntStream
ints()
java8.util.stream.IntStream
ints(int randomNumberOrigin, int randomNumberBound)
java8.util.stream.IntStream
ints(long streamSize)
java8.util.stream.IntStream
ints(long streamSize, int randomNumberOrigin, int randomNumberBound)
java8.util.stream.LongStream
longs()
java8.util.stream.LongStream
longs(long streamSize)
java8.util.stream.LongStream
longs(long randomNumberOrigin, long randomNumberBound)
java8.util.stream.LongStream
longs(long streamSize, long randomNumberOrigin, long randomNumberBound)
boolean
nextBoolean()
void
nextBytes(byte[] bytes)
double
nextDouble()
float
nextFloat()
double
nextGaussian()
int
nextInt()
int
nextInt(int bound)
long
nextLong()
void
setSeed(long seed)
-
-
-
Method Detail
-
nextBytes
void nextBytes(byte[] bytes)
-
nextInt
int nextInt()
-
nextInt
int nextInt(int bound)
-
nextLong
long nextLong()
-
doubles
java8.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumberBound)
-
doubles
java8.util.stream.DoubleStream doubles()
-
doubles
java8.util.stream.DoubleStream doubles(long streamSize)
-
doubles
java8.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound)
-
nextBoolean
boolean nextBoolean()
-
nextFloat
float nextFloat()
-
nextDouble
double nextDouble()
-
nextGaussian
double nextGaussian()
-
ints
java8.util.stream.IntStream ints(long streamSize)
-
ints
java8.util.stream.IntStream ints()
-
ints
java8.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound)
-
ints
java8.util.stream.IntStream ints(int randomNumberOrigin, int randomNumberBound)
-
longs
java8.util.stream.LongStream longs(long streamSize)
-
longs
java8.util.stream.LongStream longs()
-
longs
java8.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound)
-
longs
java8.util.stream.LongStream longs(long randomNumberOrigin, long randomNumberBound)
-
setSeed
void setSeed(long seed)
-
-