GenerateRandomCensusValues.java 959 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 04 Feb 2025, Andrew Grant of Carrick Software .
  3. * All rights reserved.
  4. */
  5. package scot.carricksoftware.grantswriter;
  6. import scot.carricksoftware.grantswriter.domains.census.Census;
  7. import scot.carricksoftware.grantswriter.domains.census.CensusEntry;
  8. import static scot.carricksoftware.grantswriter.GenerateCertificateRandomValues.GetRandomString;
  9. import static scot.carricksoftware.grantswriter.GenerateRandomNumberValues.GetRandomLong;
  10. @SuppressWarnings("unused")
  11. public class GenerateRandomCensusValues {
  12. @SuppressWarnings("unused")
  13. public static Census GetRandomCensus() {
  14. Census census = new Census();
  15. census.setId(GetRandomLong());
  16. return census;
  17. }
  18. public static CensusEntry GetRandomCensusEntry() {
  19. CensusEntry censusEntry = new CensusEntry();
  20. censusEntry.setId(GetRandomLong());
  21. censusEntry.setName(GetRandomString());
  22. return censusEntry;
  23. }
  24. }