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