-
- All Implemented Interfaces:
public final class LocalUniqueDataProvider<T extends FakeDataProvider> extends UniqueDataProvider
Local provider for unique values.
This provider is used in T implementation of FakeDataProvider class, and controls unique generation configuration of T's functions.
Example usage:
Faker().address.unique().country()
-
-
Method Summary
Modifier and Type Method Description UnitdisableAll()In thisclass the function works the same as clearAll implementation.UnitclearAll()Clears the already returned (used) unique values so that they can again be returned. final Unitclear(String name)Clears the already returned (used) unique values for the function with provided name. -
-
Method Detail
-
disableAll
Unit disableAll()
In
thisclass the function works the same as clearAll implementation.
-
clearAll
Unit clearAll()
Clears the already returned (used) unique values so that they can again be returned.
-
-
-
-