Modifier and Type | Method and Description |
---|---|
EdgeCases.Config<T> |
add(T... edgeCases)
Add one or more unshrinkable additional values as edge cases.
|
EdgeCases.Config<T> |
filter(java.util.function.Predicate<T> filter)
Only include default edge cases for which filter(Predicate) returns true
|
EdgeCases.Config<T> |
includeOnly(T... includedValues)
Include only the values given, and only if they are in the set of default edge cases.
|
static <T> java.util.function.Consumer<EdgeCases.Config<T>> |
noConfig() |
EdgeCases.Config<T> |
none()
Don't use any of the default edge cases
|
static <T> java.util.function.Consumer<EdgeCases.Config<T>> noConfig()
EdgeCases.Config<T> none()
EdgeCases.Config<T> filter(java.util.function.Predicate<T> filter)
filter
- A predicateEdgeCases.Config<T> add(T... edgeCases)
Some arbitraries may allow added values to be outside the allowed value range. This is mainly due to implementation issues and should not rely on it. Adding impossible values will - sadly enough - not raise an exception nor log a warning.
edgeCases
- The edge cases to add to default edge cases.EdgeCases.Config<T> includeOnly(T... includedValues)
includedValues
- The values to be included