public interface GenerationStatus
Generator
s are fed instances of this interface on each generation
so that, if they choose, they can use these instances to influence the
results of a generation for a particular property parameter.Modifier and Type | Interface and Description |
---|---|
static class |
GenerationStatus.Key<T>
|
Modifier and Type | Method and Description |
---|---|
int |
attempts() |
<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.
|
int size()
int attempts()
<T> GenerationStatus setValue(GenerationStatus.Key<T> key, T value)
T
- type of the valuekey
- a key to associate with a valuevalue
- the associated value<T> Optional<T> valueOf(GenerationStatus.Key<T> key)
T
- type of the value associated with the keykey
- key to look up© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu