Class ThreadLocalPerformance.Sources
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.simple.ThreadLocalPerformance.Sources
-
- Direct Known Subclasses:
ThreadLocalPerformance.LocalSources
- Enclosing class:
- ThreadLocalPerformance
public static class ThreadLocalPerformance.Sources extends Object
The benchmark state (to retrieve the various "RandomSource"s).
-
-
Field Summary
Fields Modifier and Type Field Description protected RandomSourcerandomSourceThe random source.
-
Constructor Summary
Constructors Constructor Description Sources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomSourcegetRandomSource()voidsetup()Instantiates the random source.
-
-
-
Field Detail
-
randomSource
protected RandomSource randomSource
The random source.
-
-
Constructor Detail
-
Sources
public Sources()
-
-
Method Detail
-
getRandomSource
public RandomSource getRandomSource()
- Returns:
- the random source
-
setup
public void setup()
Instantiates the random source.
-
-