-
- All Implemented Interfaces:
public final class PersonFakeDataProvider implementation class for functionality not covered by the standard dictionary files.
-
-
Method Summary
-
-
Method Detail
-
birthDate
@JvmOverloads() final LocalDate birthDate(Long age, LocalDate at)
Returns a pseudo-random birthDate as LocalDate for the given age value.
If the at date parameter is not provided, then LocalDate.now is used to calculate the "lower bound" for the resulting birthDate. Assuming the age value of
30, the resulting date will be in the range of:val start = LocalDate.now().minusYears(30) val end = LocalDate.now().minusYears(29).minusDays(1)- Parameters:
age- the person's age for which the birthDate will be calculatedat- a date at which the person was of the specified age.
-
birthDate
@JvmOverloads() final LocalDate birthDate(Long age)
Returns a pseudo-random birthDate as LocalDate for the given age value.
If the at date parameter is not provided, then LocalDate.now is used to calculate the "lower bound" for the resulting birthDate. Assuming the age value of
30, the resulting date will be in the range of:val start = LocalDate.now().minusYears(30) val end = LocalDate.now().minusYears(29).minusDays(1)- Parameters:
age- the person's age for which the birthDate will be calculated
-
-
-
-