T - the type of the itempublic class ConcurrentCachedGenerator<T> extends Object implements Seedable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConcurrentCachedGenerator.Generator<T>
Defines a generic generator of type
T. |
| Constructor and Description |
|---|
ConcurrentCachedGenerator(ConcurrentCachedGenerator.Generator<T> generator,
int cacheSize)
Creates a new instance which wraps the given item generator and uses a
cache of the specified size.
|
| Modifier and Type | Method and Description |
|---|---|
T |
next()
Returns the next value in the generated sequence.
|
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public ConcurrentCachedGenerator(ConcurrentCachedGenerator.Generator<T> generator, int cacheSize)
generator - the underlying generatorcacheSize - the size of the cachepublic T next()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.