public final class AssertingRandom extends Random
Random.setSeed(long) and locked
to be used by a single thread.| Constructor and Description |
|---|
AssertingRandom(Thread owner,
Random delegate)
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
void |
destroy()
This object will no longer be usable after this method is called.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static boolean |
isVerifying() |
protected int |
next(int bits) |
boolean |
nextBoolean() |
void |
nextBytes(byte[] bytes) |
double |
nextDouble() |
float |
nextFloat() |
double |
nextGaussian() |
int |
nextInt() |
int |
nextInt(int n) |
long |
nextLong() |
void |
setSeed(long seed) |
String |
toString() |
public boolean nextBoolean()
nextBoolean in class Randompublic double nextDouble()
nextDouble in class Randompublic double nextGaussian()
nextGaussian in class Randompublic void destroy()
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic static boolean isVerifying()
true if this class is verifying sharing and lifecycle assertions.Copyright © 2011–2025 Carrot Search s.c.. All rights reserved.