public class SimpleGenerationStatus extends Object
GenerationStatus.Key<T>| Constructor and Description |
|---|
SimpleGenerationStatus(GeometricDistribution distro,
SourceOfRandomness random,
int attempts) |
| Modifier and Type | Method and Description |
|---|---|
int |
attempts() |
protected SourceOfRandomness |
random() |
<T> GenerationStatus |
setValue(GenerationStatus.Key<T> key,
T value)
Associates the given value with the given key for the duration of the
generation of a value for a property parameter, or until overwritten.
|
int |
size() |
<T> Optional<T> |
valueOf(GenerationStatus.Key<T> key)
Retrieves the value associated with the given key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsemiAttemptpublic SimpleGenerationStatus(GeometricDistribution distro, SourceOfRandomness random, int attempts)
public int attempts()
public <T> GenerationStatus setValue(GenerationStatus.Key<T> key, T value)
GenerationStatussetValue in interface GenerationStatusT - type of the valuekey - a key to associate with a valuevalue - the associated valuepublic <T> Optional<T> valueOf(GenerationStatus.Key<T> key)
GenerationStatusvalueOf in interface GenerationStatusT - type of the value associated with the keykey - key to look uppublic int size()
size in interface GenerationStatusprotected final SourceOfRandomness random()
Copyright © 2019. All rights reserved.