Package io.grpc.xds
Class ThreadSafeRandom.ThreadSafeRandomImpl
- java.lang.Object
-
- io.grpc.xds.ThreadSafeRandom.ThreadSafeRandomImpl
-
- All Implemented Interfaces:
ThreadSafeRandom
- Enclosing interface:
- ThreadSafeRandom
public static final class ThreadSafeRandom.ThreadSafeRandomImpl extends java.lang.Object implements ThreadSafeRandom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.grpc.xds.ThreadSafeRandom
ThreadSafeRandom.ThreadSafeRandomImpl
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static ThreadSafeRandom
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
ThreadSafeRandomImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextInt(int bound)
long
nextLong()
long
nextLong(long bound)
-
-
-
Field Detail
-
instance
static final ThreadSafeRandom instance
-
-
Method Detail
-
nextInt
public int nextInt(int bound)
- Specified by:
nextInt
in interfaceThreadSafeRandom
-
nextLong
public long nextLong()
- Specified by:
nextLong
in interfaceThreadSafeRandom
-
nextLong
public long nextLong(long bound)
- Specified by:
nextLong
in interfaceThreadSafeRandom
-
-