@FunctionalInterface
public interface Generator<Requirement,T>
Modifier and Type | Method and Description |
---|---|
Maybe<T> |
generate(Requirement R)
Generate an object an instance of T.
|
default Generator<Requirement,T> |
If(java.util.function.Predicate<Requirement> p) |
default Generator<Requirement,T> |
WithChance(double chance) |
default Generator<Requirement,T> |
WithPreCondition(java.util.function.Predicate<Requirement> p) |
default Generator<Requirement,T> |
WithPreRequirement(java.util.function.Predicate<Requirement> p) |
Maybe<T> generate(Requirement R)
default Generator<Requirement,T> WithPreRequirement(java.util.function.Predicate<Requirement> p)
default Generator<Requirement,T> WithPreCondition(java.util.function.Predicate<Requirement> p)
default Generator<Requirement,T> If(java.util.function.Predicate<Requirement> p)
default Generator<Requirement,T> WithChance(double chance)